#' Stop messages
#'
#' Conditionally print stop messages.
#' Allows developers to easily control verbosity of functions,
#' and meet Bioconductor requirements that dictate the stop message
#' must first be stored to a variable before passing to \link[base]{stop}.
#' @param v Whether to print messages or not.
#'
#' @return Null
#' @keywords internal
stopper <- function(..., v = TRUE) {
msg <- paste(...)
if (v) {
stop(msg)
} else {
stop()
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.