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/RtmpuJDDZu"
#>
#> $n_files
#> [1] 2
#>
#> $size_bytes
#> [1] 8192
#>
#> $size_human
#> [1] "8.0 KB"
#>
#> $files
#> name size_bytes modified
#> 1 bslib-e9b2b13fa612f50d23e4850d93d60d01 4096 2026-09-08 07:07:33
#> 2 downlit 4096 2026-09-08 07:07:35
#>
options(op)
# }