R/zzz.R

cache <- new.env(hash = TRUE, parent = emptyenv())

.onLoad <- function(libname, pkgname) {
  cache[["stack"]] <- list()
  cache[["trace"]] <- new.env(hash = TRUE, parent = emptyenv())
  invisible()
}

.onUnload <- function (libpath) {
  library.dynam.unload("typeR", libpath)
}
PRL-PRG/typeR documentation built on May 12, 2019, 7:37 a.m.