Skip to contents

Construct a file system path from a vector of individual path components

Usage

path_from_components(components)

Arguments

components

A character vector: the path components. Note that this function calls file.path() as it does the same thing though with a vector of components instead of a variable number of character string arguments.

Value

The constructed path.

Examples

if (FALSE) { # \dontrun{
# On *nix/macOS:
path_from_components(c("", "an", "absolute", "path"))
path_from_components(c("a", "relative", "path"))
# On Windows:
path_from_components(c("\\\\", "servername", "sharename"))
path_from_components(c("C:", "Data"))
} # }