aboutsummaryrefslogblamecommitdiff
path: root/R/zzz.R
blob: 5503a4a1cbbe9c96e5e3269482cea081d73a34b7 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                      


                                                                 

                                                              
                                                        
 
.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())
}

Contact - Imprint