Rdiff(tools)
Rdiff()所属R语言包:tools
Difference R Output Files
差分R输出文件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given two R output files, compute differences ignoring headers, footers and some other differences.
鉴于两个R输出文件,计算差异,忽略页眉,页脚和其他一些差异。
用法----------Usage----------
Rdiff(from, to, useDiff = FALSE, forEx = FALSE, nullPointers = TRUE,
Log = FALSE)
参数----------Arguments----------
参数:from, to
filepaths to be compared
相比,文件路径
参数:useDiff
should diff always be used to compare results?
diff总是被用来比较结果呢?
参数:forEx
logical: extra pruning for "-Ex.Rout" files to exclude the header.
逻辑:额外的修剪-Ex.Rout文件,排除头。
参数:nullPointers
logical: should the displayed addresses of pointers be set to 0x00000000 before comparison?
逻辑:指针显示的地址之前设置比较0x00000000?
参数:Log
logical: should the returned value include a log of differences found?
逻辑:返回值应该包括日志中存在的差异呢?
Details
详情----------Details----------
The R startup banner and any timing information from R CMD BATCH are removed from both files, together with lines about loading packages. UTF-8 fancy quotes (see sQuote) and on Windows, Windows' so-called "smart quotes" are mapped to a simple quote. Addresses of environments, compiled bytecode and other exotic types expressed as hex addresses (e.g. <environment: 0x12345678>) are mapped to 0x00000000. The files are then compared line-by-line. If there are the same number of lines and useDiff is false, a simple diff-like display of differences is printed, otherwise diff -bw is called on the edited files.
在R启动旗帜,从R CMD BATCH任何定时信息将被删除这两个文件,连同有关装载包的线条。 utf-8花式引号(见sQuote)和Windows上,Windows的所谓的“智能引号被映射到一个简单的报价。环境,编译的字节码和其他外来类型的地址表示为十六进制地址(例如<environment: 0x12345678>)映射到0x00000000。这些文件,然后比较行线。如果有相同数量的线条和useDiff是假的,一个简单的diff样的差异显示,打印,否则diff -bw被称为编辑的文件。
As from R 2.14.0 this can compare uncompressed PDF files, ignoring differences in creation and modification dates.
从R 2.14.0可以比较未压缩的PDF文件,忽略创建和修改日期的差异。
值----------Value----------
If Log is true, a list with components status (see below) and out, a character vector of descriptions of differences, possibly of zero length.
Log如果是真实的,一个组件列表status(见下文)和out,特征向量的差异说明,可能长度为零。
Otherwise, a status indicator, 0L if and only if no differences were found.
否则,一个状态指示灯,0L当且仅当没有显着差异。
参见----------See Also----------
The shell script run as R CMD Rdiff.
R CMD Rdiffshell脚本运行。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|