blob: 5503a4a1cbbe9c96e5e3269482cea081d73a34b7 (
plain) (
tree)
|
|
.onLoad = function(libname, pkgname) {
rdkit_available <- FALSE
rdkit_module <- try(reticulate::import("rdkit"), silent = TRUE)
if (!inherits(rdkit_module, "try-error")) {
rdkit_available <- TRUE
}
assign('rdkit_available', rdkit_available, envir = topenv())
assign('rdkit_module', rdkit_module, envir = topenv())
}
|