aboutsummaryrefslogtreecommitdiff
path: root/R/zzz.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/zzz.R')
-rw-r--r--R/zzz.R4
1 files changed, 3 insertions, 1 deletions
diff --git a/R/zzz.R b/R/zzz.R
index 5503a4a..248f830 100644
--- a/R/zzz.R
+++ b/R/zzz.R
@@ -1,6 +1,8 @@
.onLoad = function(libname, pkgname) {
rdkit_available <- FALSE
- rdkit_module <- try(reticulate::import("rdkit"), silent = TRUE)
+ rdkit_module <- try(
+ reticulate::import("rdkit", delay_load = TRUE),
+ silent = TRUE)
if (!inherits(rdkit_module, "try-error")) {
rdkit_available <- TRUE
}

Contact - Imprint