Skip to content

Add refresh cache option #3

@sj-io

Description

@sj-io

Maybe for functions add refresh_cache = FALSE to refresh just the requested dataset.

Then a simple refresh_cache() function to clear the entire cache? Could specify to just unlink part of the cache (like a year or geography, zip files, or variables).

cache_dir <- user_cache_dir("tidychas")

if (cache = "all") {
  unlink(cache_dir)
}

...

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions