ridl_cache: Caching RIDL downloaded files

ridl_cacheR Documentation

Caching RIDL downloaded files

Description

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()

Arguments

path

character, directory to set

file

Character, the file to delete

Details

The default cache directory is ⁠~/.cache/R/ridl_cache⁠, but you can set your own path using ridl_cache_set_dir()

Value

the cache directory

the cache directory

list of files in the cache

Examples

## Not run: 
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

## End(Not run)

dickoa/ridl documentation built on April 23, 2023, 7:14 p.m.