track.attach(track)
track.attach()所属R语言包:track
Attach a tracking database to the search path.
将跟踪数据库的搜索路径。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Attach a tracking database to the search path at a position other than 1. Variables in the tracking database are made available through a new environment attached at pos on the search path.
1以外的位置,将跟踪数据库的搜索路径。在跟踪数据库中的变量是一个新的环境可以通过安装在pos的搜索路径。
用法----------Usage----------
track.attach(dir, pos = 2, name = NULL,
create = FALSE, readonly = !create,
lockEnv = FALSE, verbose = TRUE, auto = NULL)
track.detach(pos = NULL, name = NULL, detach = TRUE)
参数----------Arguments----------
参数:dir
The directory where the tracking database resides.
跟踪数据库所在的目录。
参数:pos
The position on the search path to attach the new environment at, or where it is currently attached.
搜索路径上附加新的环境,或在当前连接的位置。
参数:name
The name to use on the search path for the new environment.
使用的名称在搜索路径的新环境。
参数:create
Should the tracking database be created if it does not exist?
如果跟踪数据库中被创建,如果它不存在,?
参数:readonly
Logical flag indicating whether the tracking db should be attached in a readonly mode. The global environment (pos=1 in the search path) cannot be tracked in a readonly mode.
逻辑标志指示是否应附着在一个只读模式的跟踪分贝。全球环境(pos=1在搜索路径中)无法被跟踪在只读模式。
参数:lockEnv
Should the environment be locked for a readonly tracking environment? The default is FALSE because locking the environment is irreversible, and it prevents rescanning or caching (because can't delete or add bindings)
如果环境被锁定为只读的跟踪环境?默认值是FALSE,因为锁定的环境是不可逆转的,它可以防止重新扫描或高速缓存(因为不能删除或添加绑定)
参数:verbose
print a message about what directory is being tracked?
打印有关的消息被跟踪的是什么目录?
参数:detach
If TRUE, the environment attached to the search path (in a position other than 2) will be detached after stopping tracking, IF it was created by track.attach() and if there are no variables left remaining in the environment after removing all tracked variables. If detach="force", the attached environment will be removed even if there are variables remaining in it (though not if it was not created by track.attach).
TRUE如果,环境上的搜索路径(2以外的位置)将分离后停止跟踪,如果它是由track.attach(),如果没有变量的环境中残留取出后,所有跟踪的变量。如果detach="force",附加的环境将被删除,即使有变量保持在它(虽然不若没有创建track.attach)。
参数:auto
Should auto-tracking be used? (see track.start).
自动跟踪使用? (见track.start)。
Details
详细信息----------Details----------
track.attach attaches a new environment to the search path at the specified position and variables in the tracking database are made available in it through lazy loading. Using readonly==TRUE ensure that no changes at all are made to the tracking database, and the environment is locked to ensure that variables cannot be created or deleted.
track.attach的搜索路径上附加一个新的环境,在指定的位置,在跟踪数据库中的变量可在通过延迟加载。使用readonly==TRUE确保没有任何变化的跟踪数据库,并锁定,以确保环境变量不能创建或删除。
track.detach syncs all variables to files and detaches the environment from the search list if it is empty. See track.stop for conditions under which the environment may not be detached.
track.detach同步所有变量的文件和从搜索列表中分离的环境,如果它是空的。见track.stop的环境条件下,可能无法分离。
值----------Value----------
NULL
NULL
(作者)----------Author(s)----------
Tony Plate <a href="mailto:tplate@acm.org">tplate@acm.org</a>
参见----------See Also----------
track.start
track.start
实例----------Examples----------
## Not run: [#不运行:]
track.attach("path/to/tracking-database", pos=2, name="trackdb")
track.detach(pos=2)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|