get_absolute_path_for_files: Construct absolute path for package cache files.

Description Usage Arguments Value Examples

View source: R/filecache.R

Description

Construct absolute path for package cache files.

Usage

1
get_absolute_path_for_files(pkg_info, relative_filenames)

Arguments

pkg_info,

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

relative_filenames,

vector of strings. A vector of filenames, relative to the package cache.

Value

vector of strings. The absolute paths.

Examples

1
2
3
    rel_files = c("file1.txt", "file2.txt")
    pkg_info = get_pkg_info("mypackage")
    abs_paths = get_absolute_path_for_files(pkg_info, rel_files)

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