track.start(dir="rdatadir", pos = 1, envir = as.environment(pos),
create = TRUE,
clobber = c("no", "files", "variables", "vars", "var"),
discardMissing = FALSE,
cache = NULL, cachePolicy = NULL, options = NULL,
RDataSuffix = NULL, auto = NULL, readonly = FALSE,
lockEnv = FALSE, check.Last = TRUE, verbose = TRUE)
track.stop(pos = 1, envir = as.environment(pos), all = FALSE,
stop.on.error = FALSE, keepVars = FALSE, sessionEnd = FALSE,
verbose = TRUE, detach = TRUE, callFrom = NULL)
track.rescan(pos = 1, envir = as.environment(pos), discardMissing = FALSE,
forgetModified = FALSE, level = c("high", "low"), dryRun = FALSE)
track.Last()pos=)
of specifying the environment being tracked, but should be rarely needed.TRUE, create the tracking directory if it
doesn't existenvir: no means stop; files means use the
version from the tracking directory; and variables,TRUE. This option is a shorthand way of supplying options=list(cache=...).tltPurge, for which cached objects are removed
from memory at the end of a top-level task. This option is a shorthand way of supplying options=list(cachePolicy=...).track.options().TRUE, all tracked environment are unlinkedTRUE, automatically track new variables and
deleted variables in the environment (through use of a task
callback). If auto==NULL, take the value from
getOptions("global.track.options")$autoTrack, and if pos=1 in the search
path) cannot be tracked in a readonly mode.FALSE, failures to unlink a tracking
environment are ignored, though a warning message is printedFALSE, all tracked variables are removed and
will be no longer accessible. If TRUE, tracked variables will
be left as ordinary variables in the environment, as well as remaining
in files.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 environmtrack.stop() was called from.TRUE, discard the versions of objects that are
modified and in memoryRData files. This
should not normally need to be specified.FALSE because locking the
environment is irreversible, and it prevents rescanning or caching
(because can't delete or add bindings).Last
function in the track package is masked by any other
.Last function. Supplying check.Last=FALSE
inhibits this check and warning.TRUE, no changes are actualy made, but
messages are printed describing what changes would be made.TRUE, this is a call at the end of a
session and no recovery from errors is possible -- just try to
as best as can to save objects as appropriate.invisible(NULL) (this
may change if it becomes clear what useful return values would be)track.stop(all=TRUE) to ensure
that all tracking information and objects are written to files,
and removes tracked variables from the environment.track package.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.datadir(relative=TRUE)
track.filename(list=c("x", "X"))
track.summary(time=0, access=1, size=FALSE)
env.is.tracked(pos=1)
env.is.tracked(pos=2)
ls(all=TRUE)
track.stop(pos=1)
ls(all=TRUE)
track.start("tmp1")
ls(all=TRUE)
track.summary(time=0, access=1, size=FALSE)
track.stop(pos=1)
unlink("tmp1", recursive=TRUE)Run the code above in your browser using DataLab