codeChunk-class(DynDoc)
codeChunk-class()所属R语言包:DynDoc
Class "codeChunk"
类“codeChunk”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A class to wrap necessary information for a code chunk from
A类包装为一个代码块所需的信息,从
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("codeChunk", ...).
创建对象可以通过检测的形式new("codeChunk", ...)。
插槽----------Slots----------
chunkName: Object of class "character" The name
chunkName类"character"的名称对象
chunk: Object of class "character" The code
chunk类"character"代码:对象
options: Object of class "SweaveOptions" Any options that were set at the time the code chunk appears in the
options:对象的代码块类"SweaveOptions"任何选项,在设置的时间出现在
方法----------Methods----------
evalChunk signature(object = "codeChunk", env="environment"): Will evaluate the code in the code chunk using the environment specified. If no environment is specified,
evalChunksignature(object = "codeChunk", env="environment"):将评估使用指定环境中的代码块中的代码。如果没有指定环境,
show signature(object = "codeChunk"): Displays the
显示signature(object = "codeChunk"):显示
chunk<- signature(object = "codeChunk",
块< - 的<code>签名(对象=的“codeChunk”
chunk signature(object = "codeChunk"): Returns the
块signature(object = "codeChunk"):返回
chunkName signature(object = "codeChunk"): Returns the
chunkNamesignature(object = "codeChunk"):返回
getOptions signature(object = "codeChunk"): Returns
getOptionssignature(object = "codeChunk"):返回
SweaveOptions signature(object = "codeChunk"): Returns
SweaveOptionssignature(object = "codeChunk"):返回
作者(S)----------Author(s)----------
Jeff Gentry
参见----------See Also----------
Sweave, SweaveOptions, chunkList
Sweave,SweaveOptions,chunkList
举例----------Examples----------
require("utils")
testfile <- system.file("Sweave", "Sweave-test-1.Rnw", package="utils")
z <- Stangle(testfile,driver=tangleToR)
getChunk(z,1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|