#' @seealso \url{https://r-pkgs.org/r.html?q=onLoad#when-you-do-need-side-effects}
.onLoad <- function(libname, pkgname) {
op <- options()
op.xgbh <- list(
xgbh.dir_data = 'data-test',
engagement.seed = 42L,
xgbh.verbose = TRUE
)
toset <- !(names(op.xgbh) %in% names(op))
if(any(toset)) options(op.xgbh[toset])
invisible()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.