R/zzz.R

Defines functions .onLoad

# global reference to scypi; initiliazed on load
scipy <- NULL

# load python modules on load
.onLoad <- function(libname, pkgname) {
  # superassignment to update global python module references
  scipy <<- reticulate::import("scipy", delay_load = TRUE)
}
hunzikp/spmle documentation built on June 28, 2020, 10:30 a.m.