file.path(..., fsep = .Platform$file.sep)
fsep
if all arguments have positive length;
otherwise, an empty character vector (unlike paste
).
paste
) as this function is used extensively in R itself. It can also be used for environment paths such as PATH and
R_LIBS with fsep = .Platform$path.sep
.