R/zzz.R

Defines functions .onUnload .onLoad

.onLoad <- function(libname, pkgname) {
  options(bigmemory.print.warning=TRUE)
  options(bigmemory.typecast.warning=TRUE)
  options(bigmemory.allow.dimnames=FALSE)
  options(bigmemory.default.type="double")
  options(bigmemory.default.shared=TRUE)
}

.onUnload <- function(libpath) {
    options(bigmemory.print.warning=NULL)
    options(bigmemory.typecast.warning=NULL)
    options(bigmemory.allow.dimnames=NULL)
    options(bigmemory.default.type=NULL)
    options(bigmemory.default.shared=NULL)
}

Try the bigmemory package in your browser

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

bigmemory documentation built on May 3, 2022, 1:07 a.m.