.onLoad = function(libname, pkgname) {
conf <- reticulate::py_discover_config("rdkit")
rdkit_available <- conf$available
rdkit_module <- try(
reticulate::import("rdkit"),
silent = TRUE)
assign('rdkit_available', rdkit_available, envir = topenv())
assign('rdkit_module', rdkit_module, envir = topenv())
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.