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

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

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

                                         Manage how objects are handled in a tracking session
                                         管理对象是如何处理一个跟踪会话

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

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

Functions to start and stop tracking objects, remove them, load objects from RData files, and manage cached and saved copies of objects.  These functions should not be needed in plain vanilla use of the track package.
启动和停止跟踪对象的函数,删除,加载对象从RDATA文件,管理对象的缓存,并保存副本的。这些功能应该没有必要在普通使用的轨道包。


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


track(expr, pos = 1, envir = as.environment(pos), list = NULL,
        pattern = NULL, glob = NULL, exclude = TRUE)
track.assign(x, value, pos = 1, envir = as.environment(pos), flush = TRUE)
untrack(expr, pos = 1, envir = as.environment(pos), list = NULL,
        pattern = NULL, glob = NULL, all = FALSE, keep.in.db = FALSE)
track.remove(expr, pos = 1, envir = as.environment(pos), list = NULL,
        pattern = NULL, glob = NULL, all = FALSE, force = TRUE)
track.save(expr, pos = 1, envir = as.environment(pos), list = NULL,
        pattern = NULL, glob = NULL,
        all = missing(expr) && missing(list) && missing(pattern) && missing(glob))
track.resave(expr, pos = 1, envir = as.environment(pos), list = NULL,
        pattern = NULL, glob = NULL,
        all = missing(expr) && missing(list) && missing(pattern) && missing(glob))
track.flush(expr, pos = 1, envir = as.environment(pos), list = NULL,
        pattern = NULL, glob = NULL,
        all = missing(expr) && missing(list) && missing(pattern) && missing(glob),
        force = FALSE)
track.forget(expr, pos = 1, envir = as.environment(pos), list = NULL,
        pattern = NULL, glob = NULL, all = FALSE)
track.load(files, pos = 1, envir = as.environment(pos), list = NULL,
        pattern = NULL, glob = NULL, cache = FALSE, clobber = FALSE,
        time.of.file = TRUE, warn = TRUE)



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

参数:expr
An unquoted variable name  
一个非上市的变量名


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


参数: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=)被跟踪指定的环境,但应很少需要。


参数:list
A character vector of variable names to operate upon  
字符向量的变量名来操作


参数:pattern
A regular expression specifying variable names to operate upon  
正则表达式指定变量名来操作


参数:glob
A regular expression specifying variable names to operate upon  
正则表达式指定变量名来操作


参数:all
If TRUE, operate upon all elegible variables.  The default is FALSE for functions that can change data, and TRUE for functions that merely control whether data is in memory or file or both.
如果TRUE,操作后,所有elegible变量。默认值是FALSE功能,可以更改数据,TRUE的功能,只是控制是否有数据在内存或文件或两者。


参数:exclude
Controls exclusion of particular variables by pattern matching against a vector of regular expressions in the autoTrackExcludePattern option value.  If exclude==TRUE (the default), exclude variables that match. If exclude==FALSE, ignore the exclusion patterns.
控制特定的变量排除在外的模式匹配,正则表达式的向量autoTrackExcludePattern选项的值。如果exclude==TRUE(默认值),匹配的变量排除在外。如果exclude==FALSE,忽视了排除模式。


参数:keep.in.db
If TRUE, the variable is left in the tracking database, though the link to it is broken (it becomes masked)
如果TRUE,该变量被留在跟踪数据库中被破坏,但链接的(它变成掩蔽)


参数:files
A vector of names of RData files (any file saved by save())
一个矢量的RDATA文件名(任何文件保存save())


参数:cache
TRUE or FALSE indicating whether to keep the tracked object cached in memory  
TRUE或FALSE指示是否保持跟踪对象在内存中缓存


参数:clobber
TRUE or FALSE indicating whether to overwrite existing objects of the same name
TRUE或FALSE指示是否覆盖现有对象相同的名称


参数:force
If TRUE, for track.remove remove orphaned tracked variables; for track.flush flush out variables that would normally be kept in cache.  
如果TRUE,track.remove删除孤立的被跟踪的变量; track.flush冲洗掉,通常会被保存在高速缓存中的变量。


参数:time.of.file
If TRUE, use the access times on the file to populate the access time fields in the tracking summary.
如果TRUE,使用的文件的访问时间来填充的访问时间字段中的跟踪总结。


参数:warn
If TRUE, issue warnings about object not acted upon.
如果TRUE,发出警告对象不采取行动。


参数:x
A variable name, as a character vector of length 1
一个变量名,作为一个字符的长度为1的向量


参数:value
The value to assign
值分配


参数:flush
Logical value, specifying whether to flush the assigned object out of memory
逻辑值,指定是否要刷新的内存分配的对象


Details

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

These functions are executed for their side effects:
执行这些功能对它们的副作用:

track: start tracking the specified variables
track:开始跟踪指定的变量

track.assign: assign a value to a variable (start tracking variable if it is not already tracked.)  Optionally flush the value out of memory.
track.assign:指定一个值给一个变量(开始跟踪变量,如果它不是已经被跟踪。),可选的值刷新的内存。

untrack: stop tracking the specified variables, leaving the object in envir so that it can still be used.  If keep.in.db=TRUE, the variable is left in the tracking environment (but is masked), if keep.in.db=FALSE (the default), all trace of the variable is completely removed from the tracking environment.
untrack:停止跟踪指定的变量,离开该对象的envir所以它仍然可以使用。如果keep.in.db=TRUE,该变量被留在跟踪环境(但屏蔽),如果keep.in.db=FALSE(默认值),所有跟踪的变量是完全从跟踪环境。

track.remove: completely remove all traces of a tracked variable (also removes untracked variables)
track.remove:完全删除所有痕迹的跟踪变量(也移除未跟踪的变量)

track.save: write unsaved variables to disk
track.save:未保存的变量写入到磁盘

track.flush: write unsaved variables to disk, and remove from memory
track.flush:未保存的变量写入到磁盘,并从内存中删除

track.forget: delete cached versions without saving to file (file version will be retrieved next time the variable is accessed)
track.forget:删除缓存的版本,而不会保存到文件(文件版本将被检索下次访问该变量的时候)

track.rescan: reload variable values from disk (can forget all cached vars, remove no-longer existing tracked vars)
track.rescan:重装变量的值从磁盘(可以忘记所有的缓存瓦尔,删除没有已跟踪瓦尔“)

track.load: load variables from a saved RData file into the tracking session - if list is supplied, only these variables are loaded in.  Already existing variables will be skipped and not overwritten unless clobber=TRUE is supplied.
track.load“:从一个跟踪会话保存的的RDATA文件到负载变量 - 如果list提供,仅这些变量被加载的。已经存在的变量将被跳过,不会被覆盖,除非clobber=TRUE提供。

The variables to be acted upon are specified either in expr (a variable name, unquoted) or list (character vector containing names of variables), or by regular expression pattern or shell pattern glob.  If no specification is given, all variables are acted upon.
expr(变量名,非上市)或list(文字向量的变量名),或用正则表达式pattern或shell模式指定的变量必须采取行动glob。如果没有规范的,所有的变量都采取行动。


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

The value returned from these functions is invisible and typically contains the names of objects acted upon.
从这些函数返回的值是不可见的,通常包含采取行动的对象的名称。


参数:track:
a character vector containing the names of objects added to the tracking environment
字符向量的对象的名称添加到跟踪环境


参数:untrack, track.remove, track.save, track.flush, track.forget, track.rescan:
a character vector containing the names of objects in the tracking environment that were acted upon
字符向量的对象的名称在跟踪环境,采取了行动


参数:track.load:
a list with two components:   
两部件列表:

loaded: names of objects that were loaded from file  
loaded:对象的名称,被加载file的

skipped: names of objects in file that were not loaded  
skipped中的对象的名称file,未加载


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


Tony Plate <tplate@acm.org>



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

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


实例----------Examples----------


library(track)
unlink("tmp1", recursive=TRUE)
track.start("tmp1")
x <- 33
X <- array(1:24, dim=2:4)
Y <- list(a=1:3,b=2)
X[2] <- -1
track.summary(time=0, access=1, size=FALSE)
y1 <- 2
y2 <- 3
z1 <- 4
z2 <- 5
z3 <- 6
untracked()
track.summary(time=0, access=1, size=FALSE)
ls(all=TRUE)
track.stop(pos=1)
ls(all=TRUE)
a <- 7
b <- 8
save(list=c("a", "b"), file="ab.rda")
remove(list=c("a", "b"))
track.start("tmp1")
track.summary(time=0, access=1, size=FALSE)
track.load("ab.rda")
track.summary(time=0, access=1, size=FALSE)
track.status()
track.stop(pos=1)
unlink("tmp1", recursive=TRUE)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-30 10:51 , Processed in 0.021260 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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