load_gransasso <- function() {
data_path <- system.file("data/gransasso.RData", package = "pets")
if (file.exists(data_path)) {
load(data_path, envir = .GlobalEnv)
} else {
stop("Dataset gransasso not found.")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.