pkgTest <- function(x) {
if (!require(x, character.only = TRUE)) {
stop("Optional package ", x, " not found. Please install before continue.")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.