cache_env <- rlang::new_environment()
NULL
#' @export
dst_cache <- function(lang = "da") {
rlang::arg_match(lang, c("da", "en"))
cache_env$cache <- list(lang = lang)
}
cache_missing <- function() {
rlang::is_empty(cache_env$cache)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.