getCallStack: get callStack as dataframe

Description Usage Arguments Value

View source: R/util_callstack_functions.R

Description

Returns information about the current callstack adjusted for "implicit" function calls like tryCatch. getCallstack can be used to return information in case of errors or to determine the calling function when creating an actionInfo

Usage

1
getCallStack(offset = 0, excludeEnvironments = c("base", "methods"))

Arguments

offset
  • to cut the last rows of the callstack

excludeEnvironments

("implicit" functions from these environments are not included into the callstack)

Value

dataframe with rows per call, top level call in row 1; and columns envName, funcName, scriptName: contains name of scriptfile, where file of script is given for called function, contains name of package of function otherwise; scriptPath: contains path of scriptfile or package details respectively (see scriptName)


Open-Systems-Pharmacology/tracelib documentation built on April 11, 2020, 3:12 p.m.