R/onLoad.R

Defines functions .onLoad

# global reference to shap (will be initialized in .onLoad)
shap_reference <- NULL

.onLoad <- function(libname, pkgname) {
  tryCatch(
  shap_reference <<- reticulate::import("shap", delay_load = TRUE)
  )
}
agosiewska/shapper documentation built on May 28, 2023, 4:05 a.m.