file.path

0th

Percentile

Construct Path to File

Construct the path to a file from components in a platform-independent way.

Keywords
file
Usage
file.path(..., fsep = .Platform$file.sep)
Arguments
...
character vectors.
fsep
the path separator to use.
Details

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 PATH and R_LIBS with fsep = .Platform$path.sep.

Value

A character vector of the arguments concatenated term-by-term and separated by fsep if all arguments have positive length; otherwise, an empty character vector (unlike paste).

Note

The components are by default separated by / (not \) on Windows.

Aliases
  • file.path
Documentation reproduced from package base, version 3.0.3, License: Part of R 3.0.3

Community examples

Looks like there are no examples yet.