.onLoad <- function(libname, pkgname) {
shiny::addResourcePath("djprshiny", system.file("www", package = "djprshiny"))
if (requireNamespace("memoise")) {
cache_dir <- ifelse(dir.exists("app-cache"),
"app-cache",
tempdir()
)
djpr_girafe <<- memoise::memoise(djpr_girafe,
cache = cachem::cache_disk(dir = cache_dir)
)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.