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)

Try the R.cache package in your browser

Any scripts or data that you put into this service are public.

R.cache documentation built on July 21, 2022, 5:11 p.m.