unlink(base)
unlink()所属R语言包:base
Delete Files and Directories
删除文件和目录
译者:生物统计家园网 机器人LoveR
描述----------Description----------
unlink deletes the file(s) or directories specified by x.
unlink删除的文件(S)或x指定的目录。
用法----------Usage----------
参数----------Arguments----------
参数:x
a character vector with the names of the file(s) or directories to be deleted. Wildcards (normally "*" and "?") are allowed.
要删除一个文件名(S)或目录的特征向量。通配符(通常是*和?)是允许的。
参数:recursive
logical. Should directories be deleted recursively?
逻辑。目录应该被删除递归?
参数:force
logical. Should permissions be changed (if possible) to allow the file or directory to be removed?
逻辑。权限应该被改变(如果可能的话),让被删除的文件或目录?
Details
详情----------Details----------
Tilde-expansion (see path.expand) is done on x as from R 2.13.0.
波浪线膨胀(见path.expand)完成x为从R 2.13.0。
If recursive = FALSE directories are not deleted, not even empty ones.
如果recursive = FALSE目录不会被删除,即使是空的。
Wildcard expansion is done by the internal code of Sys.glob. Wildcards never match a leading "." in the filename, and files "." and ".." will never be considered for deletion.
通配符扩展由Sys.glob的内部代码。通配符不会匹配领先的.中的文件名,文件.和..将永远不会被删除的考虑。
值----------Value----------
0 for success, 1 for failure, invisibly. Not deleting a non-existent file is not a failure, nor is being unable to delete a directory if recursive = FALSE. However, missing values in x are regarded as failures.
0成功,1失败的,无形的。不删除一个不存在的文件,是不是一个失败,也不是不能删除一个目录,如果recursive = FALSE。然而,缺少x值被视为失败。
参考文献----------References----------
The New S Language. Wadsworth & Brooks/Cole.
参见----------See Also----------
file.remove.
file.remove。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|