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/RtmpnLnWqT/bslib-8a92d22979ec96a3105b4f8cbcdeeec5', reason 'Directory not empty'
#> Warning: cannot remove file '/tmp/RtmpnLnWqT/downlit', reason 'Directory not empty'
#> Cleared 2 cached files.
options(op)
# }