# global reference to cmdstanpy (will be initialized in .onLoad)
cmdstanpy <- NULL
#' @importFrom reticulate import
.onLoad <- function(libname, pkgname) {
# use superassignment to update global reference to scipy
cmdstanpy <<- reticulate::import("cmdstanpy", delay_load = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.