path.cat: High level function that concatenates paths.

Description Usage Arguments Details Value See Also

Description

It tries to concatenate each argument in order from left to right trying to emulate standard OS behaviour when user would put each argument in a separate cd (or in R setwd(...)) command. It also tries to be as platfrom-agnostic, as possible, treating '/' and '\' equally.

Usage

1
path.cat(..., fsep = .Platform$file.sep)

Arguments

...

character string with each directory component

fsep

Custom path separator. Defaults to .Platform$file.sep

Details

This way it enhances file.path with two features:

Value

Character string with concatenated path

See Also

file.path


adamryczkowski/pathcat documentation built on May 10, 2019, 5:51 a.m.