get_cache_dir: Manage Cache Directory

View source: R/get_cache_dir.R

get_cache_dirR Documentation

Manage Cache Directory

Description

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".

Usage

get_cache_dir(name = "inldata")

clear_cache_dir(name = "inldata")

Arguments

name

'character' string. Name of cache directory.

Value

Path to the cache directory.

Author(s)

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

Examples

dir <- get_cache_dir("test")

clear_cache_dir("test")

inldata documentation built on Sept. 12, 2024, 9:34 a.m.