inst/doc/sharingCaches.R

## ----Try it out---------------------------------------------------------------
library(simpleCache)
cacheDir = tempdir()
setSharedCacheDir(cacheDir)
simpleCacheShared("normSample", { rnorm(1e7, 0,1) }, recreate=TRUE)
simpleCacheShared("normSample", { rnorm(1e7, 0,1) })

## ----Clean up-----------------------------------------------------------------
deleteCaches("normSample", force=TRUE)

Try the simpleCache package in your browser

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

simpleCache documentation built on April 17, 2021, 9:08 a.m.