Manage cached RIDL downloaded files
Usage
ridl_cache_set_dir(path)
ridl_cache_get_dir()
ridl_cache_list()
ridl_cache_delete(file)
ridl_cache_clear()
Details
The default cache directory is
~/.cache/R/ridl_cache
, but you can set
your own path using ridl_cache_set_dir()
Examples
if (FALSE) {
ridl_cache
## change the default cache directory
tmp <- tempdir()
ridl_cache_set_dir(tmp)
## print current cache directory
ridl_cache_get_dir()
## List available files in the current cache directory
ridl_cache_list()
l <- ridl_cache_list()[1] ## get the first file
ridl_cache_delete(l) ## delete it
ridl_cache_clear() ## delete all cached files
}