File: setCachePath.R

package info (click to toggle)
r-cran-r.cache 0.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 392 kB
  • sloc: sh: 14; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
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)