R/zzz.R

Defines functions .onLoad

# python 'scipy' module I want to use in my package
excerpts <- NULL

.onLoad <- function(libname, pkgname) {
  # delay load foo module (will only be loaded when accessed via $)
  excerpts <<- reticulate::import("excerpts", delay_load = TRUE)
}

Try the excerptr package in your browser

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

excerptr documentation built on Aug. 5, 2021, 1:06 a.m.