I currently am using reticulate to import Python modules, and created an environment variable within which I store the modules. This results in something like this:
my.env <- new.env(parent = emptyenv())
.onLoad <- function(libname, pkgname) {
reticulate::configure_environment(pkgname)
assign("numpy", reticulate::import("numpy", delay_load = TRUE), my.env)
}
I would like to document this environment variable in order to pass CRAN's inspections, but I'm not quite certain how one would document this. Would anyone have any advice on how to do this with roxygen2? Thanks a lot!