Objects(lib = Sys.getenv("R_LOCAL_CACHE", unset = ".R_Cache"), lib.loc = Sys.getenv("R_LOCAL_LIB_LOC", unset = "."), all.names = FALSE, pattern = ".*", readonly = FALSE)
ObjectsData(...)
ObjectsUtils(...)
Ls(lib = Sys.getenv("R_LOCAL_CACHE", unset = ".R_Cache"), lib.loc = Sys.getenv("R_LOCAL_LIB_LOC", unset = "."), all.names = FALSE, pattern = ".*", readonly = FALSE)
LsData(...)
LsUtils(...)
Objects
, the value of the R
environment
variable R_LOCAL_CACHE
, or .R_Cache
if unset,
ObjectsData
, the value of the R
environment
variable R_CENTRAL_DATA
, or .R_Data
if unset,
ObjectsUtils
, the value of the R
environment variable R_CENTRAL_UTILS
, or .R_Utils
if unset.
Objects
, the value of the R
environment
variable R_LOCAL_LIB_LOC
, or the current working directory
if unset,
ObjectsDate
and ObjectsUtils
the value of
the R
environment variable R_CENTRAL_LIB_LOC
, or
he user's HOME
directory if unset.
objects
, or equivalently ls
, but
specialised to stored object caches. They automatically locate caches
on the search path and, optionally, attach them if not currently present.
objects
, ls
.
## change default cache, keeping any previous setting oldLC <- Sys.getenv("R_LOCAL_CACHE", unset = ".R_Cache") Sys.setenv(R_LOCAL_CACHE=".R_Test") ## generate some dummy data dummy <- rnorm(100) mn <- mean(dummy) va <- var(dummy) ## store it in the stored object cache Store(dummy, mn, va) Search() Objects() Remove(mn, va) Objects() Remove(Objects()) # empty the cache detach(".R_Test") # remove from search path Sys.setenv(R_LOCAL_CACHE=oldLC) # restore normal default