parseTranscriptFile(scriptests)
parseTranscriptFile()所属R语言包:scriptests
Parse a R transcript file into blocks of commands and output
分析的R转录成块的命令和输出文件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Parse a R transcript file into blocks of commands and output.
分析的R转录成块的命令和输出文件。
用法----------Usage----------
parseTranscriptFile(file, ignoreUpToRegExpr = NULL, ignoreAfterRegExpr=NULL, subst=NULL)
参数----------Arguments----------
参数:file
The name of the file containing transcripts.
的名称,该文件包含的成绩单。
参数:ignoreUpToRegExpr
If non-NULL, discard lines in the file up to and including the line that matches this regular expression.
如果非NULL,丢弃的文件,包括这个正则表达式匹配的行线。
参数:ignoreAfterRegExpr
If non-NULL, discard lines in the file including and beyond the line that matches this regular expression.
如果非NULL,则丢弃文件中的行和超越这个正则表达式匹配的行。
参数:subst
Provides control over whether the string "pacakge:::" is removed from test code. The default value should work.
提供线路咨询是否字符串“:::”从测试代码的控制权。默认值应该工作。
Details
详细信息----------Details----------
Tries to split the lines in file up into blocks with the following structure:
尝试在file成块具有以下结构的分割线:
commments: lines preceeding the test that begin with > # or that are empty
commments:行先前的测试与> #或开始是空的
command: line beginning with > and subsequent lines beginning with the continuation char +
命令:开头的行>和随后开始的行延续字符+
control: lines following the command that begin with #@
控制:行命令后,开始用#@
output: other lines following the command and before the next comment or command, which are presumed to be output from the command
输出:前,后的其他行的命令和下一留言或命令,该命令被推定为从命令输出
值----------Value----------
A list of commands and their associated (apparent) output. Each element of the list is a list with the following possible components:
的命令的列表及其相关的(明显的)输出。列表中的每个元素是具有以下可能组件的列表:
参数:comment
A character vector containing the lines that were interpreted as comments
一个字符向量被解释为注释的行
参数:input
A character vector containing the lines that were interpreted as commands
包含的行被解释为命令字符向量
参数:expr
The parsed input (an expression). Will be a character vector containing an error message if the input could not be parsed as an R expression.
解析输入(表达)。将是一个字符向量,包含错误的信息,如果输入不能被解析为R的表达。
参数:control
A character vector containing the lines that were interpreted as control lines
一个字符向量的行被解释为控制线
参数:output
A character vector containing the lines that were interpreted as output lines
一个字符向量的行被解释为输出线
(作者)----------Author(s)----------
Tony Plate
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|