.onLoad <- function(libname, pkgname) {
if (!("methods" %in% .packages())) attachNamespace("methods")
modules <- paste0("stan_fit4", names(stanmodels), "_mod")
for (m in modules) loadModule(m, what = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.