# check for leaflet
check4leaflet <- function() {
if (!requireNamespace("leaflet", quietly = TRUE)) {
stop("Please install leaflet", call. = FALSE)
} else {
invisible(TRUE)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.