R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname,pkgname){


  createCache()

  #Also try
  otherCache <- new.env(parent = emptyenv())

  otherCache$x <- c(1,2,3)
  #Also also try
  cacheGlobalMaybe <<- new.env()

  cacheMaybeOther <<- new.env(parent=emptyenv())

}
jlombard314159/cacheRExample documentation built on Dec. 21, 2021, 1:08 a.m.