#' @export
messageIf = function(cond, ..., sep = " ") {
if (cond) {
msg = paste(..., sep = sep)
message(msg)
}
}
#' @export
messageIfNot = function(cond, ..., sep = " ") {
if (!cond) {
msg = paste(..., sep = sep)
message(msg)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.