deleteCaches.Rd
Given a cache name, this function will attempt to delete the cache of that name on disk.
deleteCaches(cacheNames, cacheDir = getCacheDir(), force = FALSE)
cacheNames | Name(s) of the cache to delete |
---|---|
cacheDir | Directory where caches are kept |
force | Force deletion without user prompt |
#> [1] "/tmp/RtmpnwNyJo"setCacheDir(cacheDir) # build some caches simpleCache("normSample", { rnorm(5e3, 0,1) }, recreate=TRUE, timer=TRUE)#>#>#>#>#>#> NULL# what's available? listCaches()#> [1] "normSample.RData"#>#>#>#> Error in doTryCatch(return(expr), name, parentenv, handler): ::Error:: If you do not provide an instruction argument, you must setglobal option RBUILD.DIR with setCacheBuildDir, or specify a buildDirparameter directly to simpleCache().