.onLoad <- function(libname, pkgname) {
op <- options()
op.mermaidr <- list(
mermaidr.httr_oauth_cache = TRUE
)
toset <- !(names(op.mermaidr) %in% names(op))
if (any(toset)) options(op.mermaidr[toset])
invisible()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.