calls.to.trace: Transforms a list returned by sys.calls into a vector of...

Description Usage Arguments Value Examples

Description

Transforms a list returned by sys.calls into a vector of strings that looks like a result of traceback()

Usage

1
calls.to.trace(calls = sys.calls(), max.lines = 4)

Arguments

calls

a list of calls, e.g. returned by sys.calls

max.lines

as in traceback()

Value

a character vector with one element for each call formated in a similar fashion as traceback() does

Examples

1
2
3
4
5
6
## Not run: 
  f = function(a=5) calls.to.trace(rev(sys.calls()))
  g = function(x=2) f(x)
  g(10)

## End(Not run)

restorepoint documentation built on April 14, 2017, 4:47 p.m.