cache_path: Get/set the cache path

Description Usage Arguments Details Value See Also

View source: R/cache_path.R

Description

Get/set the cache path

Usage

1
cache_path(path, verbose = getOption("verbose", FALSE))

Arguments

path

path or string; location for the cache directory

verbose

whether to announce change of path (Default: FALSE)

Details

Without a path argument or path=NULL, cache_path() returns the (relative) path to the cache directory. This is provided by options(cache.path).

When path is given, the cache_path is set. If path does not exist, an error is thrown. The cache should be initialized with cache_create(...) first. NULL is allowed and does not throw an error.

Value

Always returns the value of getOptions('cache.path')

See Also


decisionpatterns/cache documentation built on June 15, 2020, 9:35 p.m.