sourceAttach(sfsmisc)
sourceAttach()所属R语言包:sfsmisc
Source and Attach an R source file
源和将R源文件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Source (via sys.source()) and attach (attach) an R source file.
源(通过sys.source())和连接(attach)R源文件。
用法----------Usage----------
sourceAttach(file, pos=2,
name = paste(abbreviate(gsub(fsep,"", dirname(file)),
12, method="both.sides"),
basename(file), sep=fsep),
keep.source = getOption("keep.source.pkgs"),
warn.conflicts = TRUE)
参数----------Arguments----------
参数:file
file name
文件名
参数:pos
passed to attach()
传递attach()的
参数:name
character, with a smart default, passed to attach().
字符,一个聪明的默认值,传递给attach()。
参数:keep.source
logical, see sys.source().
逻辑,看到sys.source()。
参数:warn.conflicts
logical, see attach.
逻辑,看到attach。
值----------Value----------
the return value of attach().
的返回值attach()。
(作者)----------Author(s)----------
Martin Maechler, 29 Jul 2011
参见----------See Also----------
attach, sys.source, source
attach,sys.source,source
实例----------Examples----------
sourceAttach(system.file("test-tools.R", package="Matrix"))
search() # shows the new "data base" at position 2[示出了新的“在位置2上的数据的基础上”]
ls(pos = 2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|