main <- NULL
datetime <- NULL
pandas <- NULL
#' @export
zipline <- NULL
.onLoad <- function(libname, pkgname) {
main <<- reticulate::import("__main__", delay_load = TRUE, convert = TRUE)
datetime <<- reticulate::import("datetime", delay_load = TRUE, convert = FALSE)
pandas <<- reticulate::import("pandas", delay_load = TRUE, convert = FALSE)
zipline <<- reticulate::import(
module = "zipline",
delay_load = TRUE,
convert = TRUE
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.