get_cache_dir {pkgfilecache} | R Documentation |
Get the absolute path of the package cache.
get_cache_dir(pkg_info)
pkg_info |
named list. Package identifier, see get_pkg_info() on how to get one. |
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.
pkg_info = get_pkg_info("mypackage")
opt_data_dir = get_cache_dir(pkg_info)