track.summary(expr, pos = 1, envir = as.environment(pos), list = NULL, pattern = NULL,
glob = NULL, all.names = FALSE,
times = track.options("summaryTimes", envir=envir)[[1]],
access = track.options("summaryAccess", envir=envir)[[1]],
size=TRUE, cache=FALSE, full=FALSE)pos=)
of specifying the environment being tracked, but should be rarely needed.all.names in ls)size column? (The values in
this column are system dependent, so make it easy to exclude so that
test output is constant across systems.)cache column?class() (if class(obj)
has more than one component, all components are appended separated
by commas, if class(obj) returns a zero-length result, the
value is "?")mode()dim() or length(),
with double brackets if the object is a list (will contain
"(error)" if dim(obj) causes an error)length() (will be
NA if length(obj) causes an error)object.size()TRUE if object summary
has been maintained since object was first tracked; FALSE if
the object summary was lost at some point and then recreatedtimes,
access, and size.
The reason for the class column containing all classes of the
object separated by commas is that extracting the most informative
class label is not simple, for example, the class of an object
returned by glm() is c("glm", "lm") (most informative
first), while the class of an object returned by Sys.time() is
c("POSIXt", "POSIXct") (most informative last).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
y1 <- 2
y2 <- 3
track.summary()
track.summary(time=0, access=1, size=FALSE)
track.summary(X)
track.summary(list=c("x", "X"))
track.summary(pattern="[xX]")
track.stop(pos=1)
unlink("tmp1", recursive=TRUE)Run the code above in your browser using DataLab