Skip to contents

Print a report at the console with cache statistics

Usage

cache_report(cache_type = NULL, cache_dir = NULL)

Arguments

cache_type

character. Use temporary to a session temporary folder, persistent for a persistent cache folder or NULL to use the environment default. Check the section Cache Type for more details.

cache_dir

character. User specified cache directory for persistent cache type.

Value

No return value. The function prints a report on the console.

Examples

mirror_deposit(deposit_id = 10959197)
#> /tmp/RtmpXlzcdf/zendown/10959197
cache_report()
#> 
#> ── Cache report ────────────────────────────────────────────────────────────────
#>  Path: /tmp/RtmpXlzcdf/zendown
#>  Cached deposits: 1
#>  Total size: 3.94K
#>  Files: 5
#> 
#> ── Cached deposits ─────────────────────────────────────────────────────────────
#> 
#> ── Zenodo id: 10959197 ──
#> 
#>  Size: 3.94K
#>  Files: 5
#>  Creation time: 2024-06-03 07:55:54
#>  Modification time: 2024-06-03 07:55:54
#>  Access time: 2024-06-03 07:55:54