debug.from.line: State of variables given lines

Description Usage Arguments Value Examples

Description

This function will either return all references to variables on a given line, or the state of all variables up to that point in execution.

Usage

1
debug.from.line(..., state = F, script.num = 0)

Arguments

...

Line(s) to examine. Can be single lines or vectors/lines.

state

If FALSE, returns the refereneces to variables on inputed line(s). If TRUE, returns the state of all variables up to that point in execution.

script.num

If 0, only examine variables from the main script. If 1 or higher, examine variables from further nested source scripts.

Value

A list of one data frame per line, containing information about the variables on that line. If no parameters were passed, returns a data frame containing the state of all variables at the end of execution.

Examples

1
2
3
4
5
6
## Not run: 
debug.from.line(4, state = F)
debug.from.line(4, 5:8, 10, state = T)
debug.from.line()

## End(Not run)

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