R/zzz.R

Defines functions .onLoad

# Delay loading arinfopy
# global reference to arinfopy (will be initialized in .onLoad)
ap <- NULL

.onLoad <- function(libname, pkgname) {
    # use super-assignment to update global reference to arinfopy
    # reticulate::use_python("python")
    ap <- reticulate::import("arinfopy", delay_load = TRUE)
    
    utils::globalVariables(c("level", "..level.."))
}

Try the simulariatools package in your browser

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

simulariatools documentation built on Nov. 8, 2023, 5:07 p.m.