# .onLoad <- function(libname, pkgname) {
# if (!Sys.getenv("PIPR_DISABLE_CACHING") == "TRUE") {
# # d <- rappdirs::user_cache_dir("pipr")
# # cm <- cachem::cache_disk(d,
# # evict = "lru",
# # max_size = 512 * 1024^2)
# cm <- cachem::cache_mem(max_size = 512 * 1024^2, evict = "lru")
# get_stats <<- memoise::memoise(get_stats, cache = cm)
# get_wb <<- memoise::memoise(get_wb, cache = cm)
# get_aux <<- memoise::memoise(get_aux, cache = cm)
# get_versions <<- memoise::memoise(get_versions, cache = cm)
# }
#
# options(cli.ignore_unknown_rstudio_theme = TRUE)
#
# }
#
# .onAttach <- function(libname, pkgname) {
# if (!Sys.getenv("PIPR_DISABLE_CACHING") == "TRUE") {
# packageStartupMessage("Info: Session based caching is enabled.")
# }
# }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.