Learn R Programming

track (version 1.0-13)

track.info: Return filenames and directories for tracked variables.

Description

Return filenames and directories for tracked variables.

Usage

track.filename(expr, list = character(0), pos = 1, envir = as.environment(pos), suffix = FALSE)
track.datadir(pos = 1, envir = as.environment(pos), relative = TRUE)
track.info(pos = 1, envir = as.environment(pos), all=TRUE)
env.is.tracked(pos = 1, envir = as.environment(pos))
tracked.envs(envirs=search())

Arguments

expr
An unquoted variable name
list
A character vector of variable names
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.
suffix
: Return the filename with the RData suffix (extension) (taken from track.options("RDataSuffix"))
relative
: Return a path relative to the current working directory, or an absolute path?
all
Return info about all tracked environments?
envirs
A list or vector of objects that can be interpreted as environments by as.environment

Value

  • [object Object],[object Object],[object Object],[object Object],[object Object]

See Also

Overview and design of the track package.

Examples

Run this code
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"))
env.is.tracked(pos=1)
env.is.tracked(pos=2)
track.stop(pos=1)
unlink("tmp1", recursive=TRUE)

Run the code above in your browser using DataLab