Removes files cached by morie under
tools::R_user_dir("morie", "cache") (or
MORIE_CACHE_DIR if set). morie's default behaviour writes
caches to a session-scoped tempdir()
subdirectory, so this function only matters if you have explicitly
opted in to persistent caching by passing
cache_dir = morie_cache_dir(...) to any of the morie
fetchers.
Usage
morie_cache_clear(subdir = NULL, confirm = interactive())Examples
# \donttest{
if (morie_has("sql")) withAutoprint({
# Non-interactive: skip the confirmation prompt.
morie_cache_clear("siu", confirm = FALSE)
})
#> > morie_cache_clear("siu", confirm = FALSE)
# }
