get_cache_dir: Get the absolute path of the package cache.

View source: R/filecache.R

get_cache_dirR Documentation

Get the absolute path of the package cache.

Description

Get the absolute path of the package cache.

Usage

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

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



dfsp-spirit/pkgfilecache documentation built on Feb. 6, 2024, 4:51 p.m.