Construct the path to a file from components in a platform-independent way.
file.path(…, fsep = .Platform$file.sep)
the path separator to use.
A character vector of the arguments concatenated term-by-term and
fsep if all arguments have positive length;
otherwise, an empty character vector (unlike
The implementation is designed to be fast (faster than
paste) as this function is used extensively in R itself.
It can also be used for environment paths such as
fsep = .Platform$path.sep.
Trailing path separators are invalid for Windows file paths apart from
d:/ (although some functions/utilities do accept
them), so a trailing
\ is removed.