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)
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.
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.
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.
keep.in.db
If TRUE
, the variable is left in the
tracking database, though the link to it is broken (it becomes masked)
files
A vector of names of RData files (any file saved by save()
)
cache
TRUE
or FALSE
indicating whether to keep the tracked
object cached in memory
clobber
TRUE
or FALSE
indicating whether to
overwrite existing objects of the same name
force
If TRUE
, for track.remove
remove orphaned
tracked variables; for track.flush
flush out variables that
would normally be kept in cache.
time.of.file
If TRUE
, use the access times on the file
to populate the access time fields in the tracking summary.
warn
If TRUE
, issue warnings about object not acted
upon.
x
A variable name, as a character vector of length 1
flush
Logical value, specifying whether to flush the assigned
object out of memory