Skip to contents

Deletes all files cached by readoecd on your local machine. After clearing, the next call to any get_oecd_*() function will re-download from the OECD API.

Usage

clear_oecd_cache()

Value

Invisibly returns the number of files deleted.

See also

Examples

# \donttest{
op <- options(readoecd.cache_dir = tempdir())
clear_oecd_cache()
#> Warning: cannot remove file '/tmp/RtmpAe1pm9/bslib-e9b2b13fa612f50d23e4850d93d60d01', reason 'Directory not empty'
#> Warning: cannot remove file '/tmp/RtmpAe1pm9/downlit', reason 'Directory not empty'
#> Cleared 2 cached files.
options(op)
# }