qa_is_cached: Has a dataset been downloaded to the local cache?

View source: R/cache_dir.R

qa_is_cachedR Documentation

Has a dataset been downloaded to the local cache?

Description

Has a dataset been downloaded to the local cache?

Usage

qa_is_cached(dataset, cache_directory = qa_cache_dir(), verbose = FALSE)

Arguments

dataset

string or qa_dataset: the dataset object, or name of the dataset

cache_directory

string: the cache directory to check. As for the path parameter to the qa_cache_dir function

verbose

logical: show progress messages?

Value

Logical

See Also

qa_dataset, qa_cache_dir

Examples

## Not run: 
  ds <- qa_dataset("ADD Simple basemap")
  qa_is_cached(ds) ## FALSE
  x <- qa_get(ds)
  qa_is_cached(ds) ## TRUE

## End(Not run)


SCAR-sandpit/quantarcticR documentation built on June 10, 2025, 5:12 a.m.