rdomains_cache_dir: A persistent cache directory for fetched pages

View source: R/page_cache.R

rdomains_cache_dirR Documentation

A persistent cache directory for fetched pages

Description

Returns the conventional per-user cache location for the package. It deliberately does not create the directory: pass it to collect_content() to opt in, and until you do nothing is written outside the session's temporary directory.

Usage

rdomains_cache_dir()

Value

Path to the per-user cache directory, as a string.

Examples

rdomains_cache_dir()
## Not run: 
# opt in to caching that survives the session
collect_content("example.com", cache_dir = rdomains_cache_dir())

## End(Not run)

rdomains documentation built on Oct. 29, 2026, 9:07 a.m.