Clear downloaded package cache
clear_pkg_cache.Rd
Deletes the cache directory used by pkginspectr
to store downloaded
CRAN and GitHub packages. This is useful for freeing up disk space or
forcing fresh downloads in future analyses.
Usage
clear_pkg_cache(type = c("session", "persistent"))
Arguments
- type
A string indicating which cache to clear. Must be one of:
"session"
: temporary cache stored intempdir()
(default)"persistent"
: long-term cache stored in a platform-specific user cache directory viarappdirs::user_cache_dir("pkginspectr")
Value
Used for side effects. Invisibly returns the path that was cleared,
or NULL
if no cache was found.