if (FALSE) { # identical(Sys.getenv("NOT_CRAN"), "true")
# Scanning a large flat-file cache is slow, so this warms it in the
# background; a later showCache()/Cache(showSimilar = TRUE) then returns
# without waiting. Guarded on interactive() because it spawns a process.
cachePath <- file.path(tempdir(), "prepopulateExample")
dir.create(cachePath, showWarnings = FALSE)
prepopulateCacheAsync(cachePath = cachePath)
unlink(cachePath, recursive = TRUE)
}
Run the code above in your browser using DataLab