#' Function to stop an R session without an error.
#'
#' @author Stuart K. Grange
#'
#' @return Invisible, the R session will be stopped.
#'
#' @export
stop_quietly <- function() {
opt <- options(show.error.messages = FALSE)
on.exit(options(opt))
stop()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.