Construct the path to a file from components in a platform-independent way.
从组件构建的路径到一个文件中,在一个平台独立的方式。
用法----------Usage----------
file.path(..., fsep = .Platform$file.sep)
参数----------Arguments----------
参数:...
character vectors.
特征向量。
参数:fsep
the path separator to use.
路径分隔符使用。
Details
详情----------Details----------
The implementation is designed to be fast (faster than paste) as this function is used extensively in R itself.
实施设计要快(比paste),此功能广泛使用在R本身。
It can also be used for environment paths such as PATH and R_LIBS with fsep = .Platform$path.sep.
它也可用于环境,如PATH和R_LIBSfsep = .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).
一个特征向量参数串连期限由长期分开fsep如果所有参数都具有积极的长度;否则,一个空的字符向量(不像paste)。
注意----------Note----------
The components are separated by / (not \) on Windows.
/(不\)在Windows的组件分开。