Removes cached data files stored by this package. By default all cached
files are deleted. Use max_age_days to remove only files older than a
given number of days.
See also
Other data access:
ons_get(),
ons_search()
Examples
# \donttest{
op <- options(ons.cache_dir = tempdir())
clear_cache()
#> Warning: cannot remove file '/tmp/Rtmpk00BZ7/bslib-e9b2b13fa612f50d23e4850d93d60d01', reason 'Directory not empty'
#> Warning: cannot remove file '/tmp/Rtmpk00BZ7/downlit', reason 'Directory not empty'
#> ✔ Removed 2 cached files.
options(op)
# }