wj_cache_clear: Clear cached weather data

wj_cache_clearR Documentation

Clear cached weather data

Description

Deletes cached files and (optionally) removes rows from the cache index.

Usage

wj_cache_clear(
  cache_dir = NULL,
  cache_scope = c("user", "project"),
  pkg = "weatherjoin",
  filter = NULL,
  keep_index = FALSE,
  dry_run = FALSE,
  verbose = TRUE
)

Arguments

cache_dir

Optional explicit cache directory.

cache_scope

Where to store cache by default: "user" or "project".

pkg

Package name used for "user" cache scope.

filter

Optional expression evaluated within the cache index to select entries to remove.

keep_index

If TRUE, leaves index rows (useful for debugging); default FALSE.

dry_run

If TRUE, prints what would be deleted but does not delete.

verbose

If TRUE, prints progress.

Value

Invisibly returns the rows selected for deletion.


weatherjoin documentation built on Feb. 4, 2026, 5:11 p.m.