get_cache_dir function

Manage Cache Directory

Manage Cache Directory

Find, create, or clear the cache directory. Defaults to the temporary directory if the rappdirs package is unavailable. You can specify the path to the cache directory by setting an environment variable named "CACHE_DIR".

get_cache_dir(name = "inldata") clear_cache_dir(name = "inldata")

Arguments

  • name: 'character' string. Name of cache directory.

Returns

Path to the cache directory.

Examples

dir <- get_cache_dir("test") clear_cache_dir("test")

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center