R/zzz.R

Defines functions .onLoad

## Hidden objects of package's own namespace
.pyjoblib <- NULL
.pyunstable <- NULL
.RFmodel <- NULL

.onLoad <- function(libname, pkgname) {

  ## configure dependency requirements of python modules
  reticulate::configure_environment(pkgname)

  ## prepare required python modules for delayed package loading
  utils::assignInMyNamespace(".pyjoblib", reticulate::import("joblib", delay_load = TRUE))
  pypath <- system.file("python", package = "sarp.snowprofile.pyface")
  utils::assignInMyNamespace(".pyunstable", reticulate::import_from_path("pyunstable", path = pypath, delay_load = TRUE))

}

Try the sarp.snowprofile.pyface package in your browser

Any scripts or data that you put into this service are public.

sarp.snowprofile.pyface documentation built on Nov. 1, 2022, 5:06 p.m.