#' Global reference to RDKit
#'
#' Global reference to RDKit which will be initialized in `.onLoad`.
#'
#' @importFrom reticulate import
#'
#' @export rdkit
rdkit <- NULL
.onLoad <- function(libname, pkgname) {
reticulate::use_virtualenv("r-rdkit", required = FALSE)
rdkit <<- reticulate::import("rdkit", delay_load = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.