file.path.Rd 1015 Bytes
Newer Older
Radford Neal's avatar
Radford Neal committed
1 2
% File src/library/base/man/file.path.Rd
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2011 R Core Team
4
% Modifications for pqR Copyright (c) 2017 Radford M. Neal.
Radford Neal's avatar
Radford Neal committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
% Distributed under GPL 2 or later

\name{file.path}
\alias{file.path}
\title{Construct Path to File}
\description{
  Construct the path to a file from components in a platform-independent
  way.
}
\usage{
file.path(\dots, fsep = .Platform$file.sep)
}
\arguments{
  \item{\dots}{character vectors.}
  \item{fsep}{the path separator to use.}
}
Radford Neal's avatar
Radford Neal committed
21
\details{
22 23 24
  This function can also be used for environment variables 
  representing sets of paths such as \env{PATH} and
  \env{R_LIBS}, with \code{fsep = .Platform$path.sep}.
Radford Neal's avatar
Radford Neal committed
25
}
Radford Neal's avatar
Radford Neal committed
26 27 28
\value{
  A character vector of the arguments concatenated term-by-term and
  separated by \code{fsep} if all arguments have positive length;
Radford Neal's avatar
Radford Neal committed
29
  otherwise, an empty character vector (unlike \code{\link{paste}}).
Radford Neal's avatar
Radford Neal committed
30 31 32 33 34
}
\note{
  The components are separated by \code{/} (not \code{\\}) on Windows.
}
\keyword{file}