R/zzz.R

Defines functions .onLoad

# global reference to geomstats (will be initialized in .onLoad)
gs <- NULL

.onLoad <- function(libname, pkgname) { # nocov start
  reticulate::configure_environment(pkgname)
  # use superassignment to update global reference to geomstats
  gs <<- reticulate::import("geomstats", delay_load = TRUE, convert = TRUE)
} # nocov end

Try the rgeomstats package in your browser

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

rgeomstats documentation built on Nov. 4, 2022, 5:09 p.m.