tests/setCacheRootPath.R

library("R.cache")

tmpdir <- tempdir()
setCacheRootPath(path=tmpdir)
setCacheRootPath(path=file.path(tmpdir, "subdir"))
setCacheRootPath(path=tmpdir)

## Cleanup
clearCache(recursive=TRUE)
HenrikBengtsson/R.cache documentation built on Sept. 30, 2023, 5:01 a.m.