censobr_cache {censobr} | R Documentation |
Manage cached files from the censobr package
Description
Manage cached files from the censobr package
Usage
censobr_cache(
list_files = TRUE,
print_tree = FALSE,
delete_file = NULL,
verbose = TRUE
)
Arguments
list_files |
Logical. Whether to print a message with the address of all
censobr data sets cached locally. Defaults to |
print_tree |
Logical. Whether the cache files should be printed in a
tree-like format. This parameter only works if |
delete_file |
String. The file name or a string pattern that matches the
file path of a file cached locally and which should be deleted.
Defaults to |
verbose |
A logical. Whether the function should print informative
messages. Defaults to |
Value
A message indicating which file exist and/or which ones have been deleted from the local cache directory.
See Also
Other Cache data:
get_censobr_cache_dir()
,
set_censobr_cache_dir()
Examples
# list all files cached
censobr_cache(list_files = TRUE)
# delete particular file
censobr_cache(delete_file = '2010_deaths')