combine_directory_path: Build absolute path from a directory and path

Description Usage Arguments

View source: R/get-path-from-object.R

Description

Concatenates a directory and path, and uses normalizePath() to create an absolute path, with some specific rules: If .directory is NULL, set to working directory. If .path is an absolute path, ignore .directory and just return .path, otherwise return 'file.path(.directory, .path)'. Also NOTE that '.directory' must point an already existing directory so that the absolute path can be reliably built.

Usage

1
combine_directory_path(.directory, .path)

Arguments

.directory

Character scaler for the directory

.path

Character scaler for the path to the file (could be just the file name, or could be in a subdirectory)


metrumresearchgroup/mrgvalidatetestreference documentation built on Aug. 15, 2021, 8:13 a.m.