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

                                      


                                                    

                                             

                                                              
                                                        
 
.onLoad = function(libname, pkgname) {
  rdkit_available <- FALSE
  rdkit_module <- try(
    reticulate::import("rdkit", delay_load = TRUE), 
    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