Returns information about the local cache: directory, file count,
size, and list of cached files. Useful for debugging stale
results or deciding whether to call co2_clear_cache().
Value
A list with elements dir, n_files, size_bytes,
size_human, and files (a data frame with name,
size_bytes, modified).
See also
Other configuration:
co2_clear_cache()
Examples
# \donttest{
op <- options(carbondata.cache_dir = tempdir())
co2_cache_info()
#> $dir
#> [1] "/tmp/RtmpyXgMwv"
#>
#> $n_files
#> [1] 2
#>
#> $size_bytes
#> [1] 8192
#>
#> $size_human
#> [1] "8.0 KB"
#>
#> $files
#> name size_bytes modified
#> 1 bslib-7db53ff92ec092c0dbca0588320fd109 4096 2026-11-01 14:02:25
#> 2 downlit 4096 2026-11-01 14:02:27
#>
options(op)
# }