debug.lineage: Lineage of variables

Description Usage Arguments Value Examples

Description

This function will return either the lines that led up to a variable's creation or the other variables that the chosen variable was used to create

Usage

1
debug.lineage(..., forward = F)

Arguments

...

Variables to find the lineage for. Can be single elements or vectors/lists.

forward

Determines whether to look for lineage forward in the script or backward

Value

Returns one of two things. If no parameters were passed to the function then a vector of possible variables will be returned. If variables were passed to the function then a list of data frames is returned. Each data frame corresponds to one of the variables. The names of the list will correspond to the variable passed

Examples

1
2
3
4
5
6
7
8
## Not run: 
debug.init("example.R")
debug.lineage("x")
l <- c("x", "y", "foo", "bar")
debug.lineage(l)
debug.lineage(l, "z")

## End(Not run)

jwons/provDebugR documentation built on May 3, 2019, 3:40 p.m.