Learn R Programming

weatherjoin (version 0.2.2)

wj_cache_clear: 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
)

Value

Invisibly returns the rows selected for deletion.

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.