Learn R Programming

fred (version 0.3.1)

fred_cache_info: Inspect the local fred cache

Description

Returns information about the local cache: where it lives, how many files it contains, and how much disk space they take. Useful when debugging stale results or deciding whether to call clear_cache().

Usage

fred_cache_info()

Arguments

Value

A list with elements dir, n_files, size_bytes, size_human, and files (a data frame with name, size_bytes, and modified columns). Returns the same shape with zero counts if the cache directory does not yet exist.

See Also

Other configuration: clear_cache(), fred_get_key(), fred_request(), fred_set_key()

Examples

Run this code
# \donttest{
op <- options(fred.cache_dir = tempdir())
fred_cache_info()
options(op)
# }

Run the code above in your browser using DataLab