shortPathName(utils)
shortPathName()所属R语言包:utils
Express File Paths in Short Form
短形式表示文件路径
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Convert file paths to the short (DOS) form, with 8+3 path components and no spaces. This is an interface to the Windows API call GetShortPathName.
转换文件路径短(DOS)的形式,与8 +3路径组件和没有空格。这是一个Windows API的接口调用GetShortPathName。
用法----------Usage----------
shortPathName(path)
参数----------Arguments----------
参数:path
character vector of file paths.
文件路径的特征向量。
值----------Value----------
A character vector. The path separator will be \. If the file does not exist, the supplied path will be returned with slashes replaced by backslashes.
字符向量。路径分隔符将\。如果该文件不存在,所提供的路径将被退回斜线与反斜线取代。
参见----------See Also----------
normalizePath.
normalizePath。
举例----------Examples----------
cat(shortPathName(c(R.home(), tempdir())), sep = "\n")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|