tests/setCachePath.R

library("R.cache")
setCachePath <- R.cache:::setCachePath

## Use an empty temporary file cache
tmpdir <- tempdir()
setCacheRootPath(path=tmpdir)

dirs <- c("tests", "readCacheHeader")
setCachePath(dirs=dirs, path=tmpdir)

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