get_cache_dir {pkgfilecache} | R 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)
[Package pkgfilecache version 0.1.5 Index]