check_package_available <- function(pkg) {
if(!requireNamespace(pkg, quietly = TRUE)) {
stop("Please install suggested package: ", pkg)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.