Skip to contents

Returns or sets the cache directory. When set, vigiar_baixar_com_cache() stores downloads and reuses them on subsequent calls.

Usage

vigiar_cache_dir(dir = NULL)

Arguments

dir

Path to cache directory. If NULL, returns current. Use "auto" for platform-appropriate default.

Value

The cache directory path (invisibly if setting).

Examples

vigiar_cache_dir()
#> [1] "/home/runner/.cache/R/vigiar"