get_absolute_path_for_files: Construct absolute path for package cache files.

View source: R/filecache.R

get_absolute_path_for_filesR Documentation

Construct absolute path for package cache files.

Description

Construct absolute path for package cache files.

Usage

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

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


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