file.path.Rd 1015 Bytes
 Radford Neal committed May 18, 2013 1 2 % File src/library/base/man/file.path.Rd % Part of the R package, http://www.R-project.org  Radford Neal committed Aug 26, 2016 3 % Copyright 1995-2011 R Core Team  Radford Neal committed Jul 30, 2017 4 % Modifications for pqR Copyright (c) 2017 Radford M. Neal.  Radford Neal committed May 18, 2013 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 committed May 18, 2013 21 \details{  Radford Neal committed Jul 30, 2017 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 committed May 18, 2013 25 }  Radford Neal committed May 18, 2013 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 committed May 18, 2013 29  otherwise, an empty character vector (unlike \code{\link{paste}}).  Radford Neal committed May 18, 2013 30 31 32 33 34 } \note{ The components are separated by \code{/} (not \code{\\}) on Windows. } \keyword{file}