Convert function call to a stack trace

calls_to_stacktrace(calls)

Arguments

calls

function calls, e.g. from sys.calls()

Value

a data.frame

Examples

if (FALSE) { f <- function() stop("cabin pressure lost") f() calls_to_stacktrace(sys.calls()) }