R/zzz.R

Defines functions .onLoad

# "onLoad" functionality: Set up python interface
scipy <- NULL
.onLoad <- function( libname, pkgname )
{
  # use superassignment to update global reference to scipy
  # this delays the loading of python a bit
  scipy <<- reticulate::import( "scipy", delay_load = TRUE )
}
Fraternalilab/BrepPhylo documentation built on Jan. 3, 2025, 10:03 a.m.