Helper functions to list cached processed fcds data files or to clean outdated cached files.

fcds_cache_ls(path = NULL, pattern = "^fcds_.+\\.[Rr][Dd][Ss]$")

fcds_cache_info(path = NULL, ...)

fcds_cache_clean(path = NULL, ..., all = FALSE, dry_run = FALSE)

Arguments

path

The path to the fcds cached data, defaults to fcds_default_data_path()

pattern

The file pattern used to identify fcds cached data files, by default these are expected to be .rds files whose names start with fcds_.

...

Arguments passed on to fcds_cache_ls

pattern

The file pattern used to identify fcds cached data files, by default these are expected to be .rds files whose names start with fcds_.

all

Should all cached data files be removed? If FALSE, the default value, the most recent file is kept. Recency is determined by sorting file names in reverse order rather than by file system modification times. If in doubt, use dry_run = TRUE to check behavior.

dry_run

If TRUE, fcds_cache_clean() reports planned actions without removing any files.

Functions

  • fcds_cache_ls: List cached fcds data files

  • fcds_cache_info: Report information about cached fcds data files

  • fcds_cache_clean: Clean outdated cached fcds data files

See also