powered by
Caches table lists and codebooks on disk to speed up repeated calls. Optionally set a time-to-live (TTL) for cache entries.
nso_cache_enable(dir = NULL, ttl = NULL)
Cache directory path (invisibly).
Directory for cache; defaults to user cache dir.
Optional TTL in seconds for cached entries (applies to the disk cache). If NULL, entries persist until cleared.
NULL
# Enable caching in a temporary directory (for demo purposes) cache_dir <- nso_cache_enable(dir = tempdir()) # Check status nso_cache_status() # Disable when done nso_cache_disable()
Run the code above in your browser using DataLab