tests/setCacheRootPath.R

library("R.cache")

tmpdir <- tempdir()
setCacheRootPath(path=tmpdir)
setCacheRootPath(path=file.path(tmpdir, "subdir"))
setCacheRootPath(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.