.onLoad <- function(libname, pkgname) {
if (requireNamespace("rstan", quietly = TRUE)) {
rstan::rstan_options(auto_write = TRUE)
options(mc.cores = min(parallel::detectCores(), 1))
} else {
warning("rstan not found, some functionality will not work.")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.