tests/DEPRECATED.R

library("R.cache")

options(R.cache.rootPath = NULL)

## -----------------------------------------------
## DEPRECATED & DEFUNCT
## -----------------------------------------------
options("R.cache.path"="foo")
res <- tryCatch(getCacheRootPath(), error = identity)
print(res)
stopifnot(inherits(res, "error"))
options("R.cache.path"=NULL)

Sys.setenv("R_CACHE_PATH"="foo")
res <- tryCatch(getCacheRootPath(), error = identity)
print(res)
stopifnot(inherits(res, "error"))
Sys.setenv("R_CACHE_PATH"="")
HenrikBengtsson/R.cache documentation built on Sept. 30, 2023, 5:01 a.m.