get_cache_dir: Get the absolute path of the package cache.

Description Usage Arguments Value Examples

View source: R/filecache.R

Description

Get the absolute path of the package cache.

Usage

1
get_cache_dir(pkg_info)

Arguments

pkg_info,

named list. Package identifier, see get_pkg_info() on how to get one.

Value

string. The absolute path of the package cache. It is constructed by calling 'rappdirs::user_data_dir' with the package, author, and version if available. If the author is null, the package name is also used as the author name.

Examples

1
2
    pkg_info = get_pkg_info("mypackage")
    opt_data_dir = get_cache_dir(pkg_info)

pkgfilecache documentation built on May 18, 2021, 1:06 a.m.