Skip to contents

Files fetched from OSF/GitHub/Zenodo/ResearchBox by data_check and code_check with cache = TRUE are stored in a lasting on-disk cache so they are reused across modules and R sessions (never re-downloaded). This returns that cache's root directory. With cache = FALSE (the default) the files are kept in a temporary folder that R removes when the session ends.

Usage

repo_cache_dir()

Value

the cache root directory path (character), invisibly

Details

The cache is never cleared automatically — it has no size cap or expiry, so it is safe to reuse but grows without bound. Use repo_cache_clear() to delete it (e.g. to reclaim disk space after a large corpus run).

The location defaults to the folder .metacheck_repo_cache in the working directory; override it with options(metacheck.repo_cache.dir = "/some/path"), or move all caches with options(metacheck.cache.dir = "/some/path").

Examples

repo_cache_dir()