设为首页收藏本站获取积分奖励

R语言中文网

 找回密码
 立即注册
查看: 692|回复: 0

R语言检测哪些文件已更改print.changedFiles()函数-中英文对照帮助文档

[复制链接]
发表于 2020-8-21 08:09:20 | 显示全部楼层 |阅读模式
        R语言检测哪些文件已更改print.changedFiles()函数-中英文对照帮助文档

                                         By MicroRbt Martinez PhD

R语言函数名:print.changedFiles()
R语言函数功能:检测哪些文件已更改
来自资源库:基础库(R语言自带)
print.changedFiles()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。

描述-----Description-----

fileSnapshot takes a snapshot of a selection of files, recording summary information about each. changedFiles compares two snapshots, or compares one snapshot to the current state of the file system. The snapshots need not be the same directory; this could be used to compare two directories.
fileSnapshot拍摄选定文件的快照,记录有关每个文件的摘要信息。 changedFiles比较两个快照,或将一个快照与文件系统的当前状态进行比较。快照不必位于同一目录;这可以用来比较两个目录。


使用方法-----Usage-----

fileSnapshot(path = ".", file.info = TRUE, timestamp = NULL,
md5sum = FALSE, digest = NULL, full.names = length(path) > 1,
...)
changedFiles(before, after, path = before$path, timestamp = before$timestamp,
check.file.info = c("size", "isdir", "mode", "mtime"),
md5sum = before$md5sum, digest = before$digest,
full.names = before$full.names, ...)

## S3 method for class 'fileSnapshot' S3 method for class 'fileSnapshot'
print(x, verbose = FALSE, ...)
## S3 method for class 'changedFiles' S3 method for class 'changedFiles'
print(x, verbose = FALSE, ...)

参数-----Arguments-----


参数path介绍: character vector; the path(s) to record.
字符向量记录的路径。

参数file.info介绍: logical; whether to record file.info values for each file.
逻辑是否记录每个文件的file.info值。


参数timestamp介绍: character string or NULL; the name of a file to write at the time the snapshot is taken. This gives a quick test for modification, but may be unreliable; see the Details.
字符串或NULL;拍摄快照时要写入的文件的名称。这样可以快速进行修改测试,但可能不可靠。请参阅详细信息。

参数md5sum介绍: logical; whether MD5 summaries of each file should be taken as part of the snapshot.
逻辑是否应将每个文件的MD5摘要作为快照的一部分。

参数digest介绍: a function or NULL; a function with header function(filename) which will take a vector of filenames and produce a vector of values of the same length, or a matrix with that number of rows.
一个功能或NULL;具有头文件function(filename)的函数,该函数将使用文件名的向量并产生具有相同长度的值的向量,或具有该行数的矩阵。
-----未完,待续-----,↓↓↓展开剩余72%↓↓↓
购买主题 前行需要您的支持,请赞助作者 【15 金钱】 就能浏览全部100%内容啦!(本贴一次赞助、永久可读)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|R语言中文网    

GMT+8, 2024-5-20 20:49 , Processed in 0.033354 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表