R/zzz.R

Defines functions .onLoad .onUnload

# Environment internal to the package
.bigalgebra_env <- new.env()

# Packgage library and global options
.onLoad <- function(libname, pkgname) {
  library.dynam("bigalgebra", pkgname, libname);
  options(bigalgebra.temp_pattern="matrix_")
  options(bigalgebra.mixed_arithmetic_returns_R_matrix=TRUE)
  options(bigalgebra.tempdir=tempdir)
  options(bigalgebra.DEBUG=FALSE)
}

.onUnload <- function(libpath) {
  library.dynam.unload("bigalgebra", libpath);
  options(bigalgebra.temp_pattern=c())
  options(bigalgebra.mixed_arithmetic_returns_R_matrix=c())
  options(bigalgebra.tempdir=c())
  options(bigalgebra.DEBUG=c())
}

Try the bigalgebra package in your browser

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

bigalgebra documentation built on May 2, 2019, 5:21 p.m.