bcp_cache_path() returns the path to the cached registry file.
bcp_cache_size() reports the total size of cache files on disk.
bcp_cache_clear() deletes the cached registry file.
bcp_cache_update() downloads the latest IANA registry and writes it to cache.
Usage
bcp_cache_path()
bcp_cache_size()
bcp_cache_clear(force = FALSE)
bcp_cache_update(overwrite = FALSE)
Arguments
- force
Logical. If TRUE, skip interactive confirmation in
bcp_cache_clear(). Default is FALSE.
- overwrite
Logical. If TRUE, overwrite an existing cached registry in
bcp_cache_update(). Default is FALSE.
Value
bcp_cache_path(): A character scalar giving the file path of the cached registry.
bcp_cache_size(): The cache size in bytes, invisibly. Also prints a
human-readable size message.
bcp_cache_clear(): The cache path, invisibly.
bcp_cache_update(): The registry data frame, invisibly.
Examples
bcp_cache_path()
#> [1] "/home/runner/.cache/R/BCP47/subtag_registry.rds"
bcp_cache_size()
#> 0 bytes