app_cache_dir: Path to an App Cache Directory

Description Usage Arguments Value Examples

View source: R/path.R

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

1
app_cache_dir(appname)

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

1
app_cache_dir("myApp")

dlr documentation built on Sept. 18, 2021, 5:07 p.m.