track.status(pos = 1, envir = as.environment(pos), expr,
qexpr = NULL, list = NULL, pattern = NULL, glob = NULL,
file.status = TRUE, tracked = NA, reserved = FALSE,
all.names = FALSE,
what = c("all", "tracked", "trackable", "untracked",
"orphaned", "masked", "unsaved", "untrackable"))
tracked( pos=1, envir=as.environment(pos), list=NULL, pattern=NULL, glob=NULL, all.names = TRUE)
untracked( pos=1, envir=as.environment(pos), list=NULL, pattern=NULL, glob=NULL, all.names = TRUE)
track.orphaned( pos=1, envir=as.environment(pos), list=NULL, pattern=NULL, glob=NULL, all.names = TRUE)
track.masked( pos=1, envir=as.environment(pos), list=NULL, pattern=NULL, glob=NULL, all.names = TRUE)
untrackable( pos=1, envir=as.environment(pos), list=NULL, pattern=NULL, glob=NULL, all.names = TRUE)
track.unsaved( pos=1, envir=as.environment(pos), list=NULL, pattern=NULL, glob=NULL, all.names = TRUE)pos=)
of specifying the environment being tracked, but should be rarely needed.TRUE, return information only on tracked
objects, if FALSE, return information only on objects that
are not tracked, and if NA return information on all
variables (subject to other filtering).all.names in ls)"all" means
return a data frame of status, other values means return a list of
names of objects having that statusTRUE, include info about non-tracked variables with
reserved names. The default is to always omit these variables from
the status summary.data.frame if
what=="all", or a character vector otherwise.envir and the tracking environment.
Tracking status depends on the relationship among four entities used
for a tracked object:
envirwhich should
be an active binding that refers to the tracking environmentexpr, list, pattern, and
glob all serve to restrict the set of variables considered.track package.library(track)
unlink("tmp1", recursive=TRUE)
remove(list=ls(all=TRUE))
track.start("tmp1", cache=TRUE)
x1 <- 123
x2 <- 456
x3 <- 789
track.status()
rm(x3)
track.status()
track.stop(pos=1)
unlink("tmp1", recursive=TRUE)Run the code above in your browser using DataLab