app_cache_dir: Path to an App Cache Directory

View source: R/path.R

app_cache_dirR Documentation

Path to an App Cache Directory

Description

App cache directories can depend on the user's operating system and an overall R_USER_CACHE_DIR environment variable. We also respect a per-app option (appname.dir), and a per-app environment variable (APPNAME_CACHE_DIR). This function returns the path that will be used for a given app's cache.

Usage

app_cache_dir(appname, verbose = interactive())

Arguments

appname

Character; the name of the application that will "own" the cache, such as the name of a package.

Value

The full path to the app's cache directory.

Examples

app_cache_dir("myApp")

macmillancontentscience/dlr documentation built on Sept. 24, 2022, 12:50 p.m.