找回密码
 注册
查看: 538|回复: 0

R语言 track包 track.sync()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 11:21:09 | 显示全部楼层 |阅读模式
track.sync(track)
track.sync()所属R语言包:track

                                         Synchronize the tracking database stored in files on disk to reflect changed, new, or deleted objects in R
                                         同步跟踪存储在磁盘上的文件,以反映在R的改变,新的或已删除的对象的数据库

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Synchronize the tracking database to reflect new and/or deleted objects.  This function is intended to be called by a task callback so that the tracking database keeps up with new and deleted object automatically.  The appropriate task callback is installed by track.start(..., auto = TRUE).
同步跟踪数据库,以反映新的和/或删除的对象。此功能是被称为的任务回调的跟踪数据库自动保持与新的和已删除的对象。安装相应的任务回调track.start(..., auto = TRUE)。

This function differs from track.rescan() in that track.rescan() updates R view of the database to agree with changes on disk, while track.sync() is primarily intended to go the other way (to make the disk database agree with R).
此功能不同于track.rescan()在这track.rescan()更新R视图的数据库同意在磁盘上的变化,而track.sync()的主要目的是去其他方式(使磁盘上的数据库同意的与R)。


用法----------Usage----------


track.sync(pos = 1, master=c("auto", "envir", "files"), envir = as.environment(pos),
           trackingEnv = getTrackingEnv(envir), full = TRUE,
           dryRun = FALSE, taskEnd = FALSE)



参数----------Arguments----------

参数:pos
The search path position of the environment being tracked (default is 1 for the global environment)
被跟踪的路径中的位置的环境(默认值是1对全球环境)


参数:master
What to treat as the master for the synchronization. For a readonly tracked environment, the default auto will default to "files" (the only sensible interpretation). Otherwise, must be supplied (to avoid accidents with users mis-remembering the default.) When master="envir", changes are propagated from the R environment to the file system. When master="files", the R environment is made to reflect the file system (differences could result from changes to the R environment, or from changes to the file system, e.g., by another R process changing the database).
治疗作为主同步。对于一个只读跟踪的环境中,默认的auto将默认为"files"(唯一合理的解释)。否则,必须提供(避免事故的发生,与用户误记住默认的)。当master="envir",从R环境中的更改传播到文件系统。当master="files",R环境,以反映文件系统(差异可能导致的R环境的变化,或变动的文件系统,例如,通过更改数据库的另外一个R)。


参数:envir
The environment being tracked.  This is an alternate way (to the use of pos=) of specifying the environment being tracked, but should be rarely needed.
被跟踪的环境。这是一种备选的方式(使用pos=)被跟踪指定的环境,但应很少需要。


参数:trackingEnv
The environment that contains data for the tracking database.
环境包含数据跟踪数据库。


参数:full
If TRUE, do a full check, which involves checking that all apparently tracked variables do in fact have an active binding.  If NA, only do a full check if more than track.options("autoTrackFullSyncWait") seconds have passed since the last full check (because this check can be slow when there are many variables in the environment.
如果TRUE,做一个全面的检查,包括检查,显然跟踪的变量,其实也有积极的绑定。如果NA,只有做一个全面的检查,如果超过track.options("autoTrackFullSyncWait")秒钟之后,最后一次全面检查(检查,因为这可能会很慢时,有许多变数的环境中。


参数:dryRun
If TRUE, no changes are made to either the file system or to the R environment, but changes that would be made are printed out.  Note that a change to a file for a tracked variable will not be detect.
如果TRUE,没有任何变化,无论是文件系统或R环境,但改变将被打印出来。需要注意的是到一个文件中的跟踪变量不会改变检测。


参数:taskEnd
Should be TRUE when called at the end of a top-level command task (i.e., when called by the task callback handler.)
应该是TRUE称为最上层的命令任务结束时(即,调用时的任务回调处理程序。)


Details

详细信息----------Details----------

Synchronizing the tracking database with the contents of the environment involves three tasks:
同步跟踪数据库与环境的内容涉及三个任务:

start tracking new untracked variables
开始跟踪新不露痕迹的变量

for objects that have disappeared from the environment, delete them from the tracking database
从环境中的对象已经消失,他们从跟踪数据库中删除

check that all apparently tracked variables do in fact have an active binding
显然跟踪的变量,其实也有积极的绑定

Currently, this function will not correctly handle the case where master="files" and where objects are cached and an underlying file is changed.
目前,此功能将不能正确处理master="files"的对象缓存和一个基本的文件被改变的情况下。


值----------Value----------

Returns an invisible list with the following components:
返回一个无形的名单以下组件:


参数:new
character vector of names of new variables
新的变量名称的字符向量


参数:removed
character vector of names of variables that were removed
被删除的变量名的字符向量的


注意----------Note----------

The check that all apparently tracked variables have an active binding currently only checks that the variable has an active binding – there is no way (at the R level) to check that the active binding is the correct one.
支票,显然跟踪的变量有一个活跃的约束力目前只检查该变量有一个活跃的约束力 - 有没有办法(R级),以确认的活性结合是正确的,。


(作者)----------Author(s)----------



Tony Plate <tplate@acm.org>




参见----------See Also----------

track.rescan for rescanning a tracked database after the files on disk have changed (this is usually only used for tracked environment attached at a position 2 or greater.)
track.rescan为后重新扫描跟踪数据库的磁盘上的文件发生了变化(这是通常只用于履带环境附着在位置2或更大)。

Overview and design of the track package.
track包的概述和设计。

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-30 10:49 , Processed in 0.031493 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表