clean_ilostat_cache: Clean Ilostat Cache

Description Usage Arguments Author(s) References Examples

View source: R/clean_ilostat_cache.R

Description

Deletes all cache files from the your ilostat cache directory. See get_ilostat for more on cache.

Usage

1
2
3
4
5
clean_ilostat_cache(
  cache_dir = getOption("ilostat_cache_dir", file.path(tempdir(), "ilostat")),
  cache_update = getOption("ilostat_cache_update", FALSE),
  quiet = getOption("ilostat_quiet", FALSE)
)

Arguments

cache_dir

A character, path to a cache directory. The directory has to exist. The NULL (default) uses and creates 'ilostat' directory in the temporary directory from tempdir. The directory can also be set with option ilostat_cache_dir,

cache_update

a logical whether to delete only out of date cache files. Useful when cache_dir is set as keep only update datasets. Can be set also with options(ilostat_update = TRUE). Default is FALSE.

quiet

a logical, if TRUE , don't return message from processing, FALSE (default). Can be set also with options(ilostat_quiet = TRUE),

Author(s)

David Bescond bescond@ilo.org

References

See citation("Rilostat") ilostat bulk download facility user guidelines https://www.ilo.org/ilostat-files/Documents/ILOSTAT_BulkDownload_Guidelines.pdf

Examples

1
2
3
4
## Not run: 
clean_ilostat_cache() 

## End(Not run)

Rilostat documentation built on July 8, 2020, 7:02 p.m.