aboutsummaryrefslogblamecommitdiff
path: root/R/zzz.R
blob: fc39fbfa32e637bfe304f7fac2f04148629b513d (plain) (tree)
1
2
3
4
5
6
7
8
9
                                      
                                                 
                                                             
                      
                                 
                  
                                                              
                                                        
 
.onLoad = function(libname, pkgname) {
  conf <- reticulate::py_discover_config("rdkit")
  rdkit_available <- reticulate::py_module_available("rdkit")
  rdkit_module <- try(
    reticulate::import("rdkit"), 
    silent = TRUE)
  assign('rdkit_available', rdkit_available, envir = topenv())
  assign('rdkit_module', rdkit_module, envir = topenv())
}

Contact - Imprint