Skip to contents

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 ukh_clear_cache().

Usage

ukh_cache_info()

Value

A list with elements dir, n_files, size_bytes, size_human, and files (a data frame).

See also

Other configuration: ukh_clear_cache(), ukh_epc_set_key()

Examples

# \donttest{
op <- options(ukhousing.cache_dir = tempdir())
ukh_cache_info()
#> $dir
#> [1] "/tmp/RtmpBGChOV"
#> 
#> $n_files
#> [1] 2
#> 
#> $size_bytes
#> [1] 8192
#> 
#> $size_human
#> [1] "8.0 KB"
#> 
#> $files
#>                                     name size_bytes            modified
#> 1 bslib-8a92d22979ec96a3105b4f8cbcdeeec5       4096 2026-05-04 19:17:25
#> 2                                downlit       4096 2026-05-04 19:17:27
#> 
options(op)
# }