Learn R Programming

AnalysisPageServer (version 1.6.2)

vwc.tracebacks: vwc.tracebacks

Description

Return traceback(s) for an AnalysisPageValueWithConditions

Usage

vwc.tracebacks(vwc, type = "messages")

Arguments

vwc
AnalysisPageValueWithConditions
type
Type of conditions. Must be "messages", "warnings" or "error". Default: "messages". A (new) error is thrown if type is "error" but the vwc is not an error (that is, does not have an error, or more specifically, !vwc.is.error(vwc)).

Value

For "messages" or "warnings" it gives a list of Charvecs of tracebacks, as built by getTraceback. For "error" it only gives a single charvec, since there is only one error.

Details

Return traceback(s) for an AnalysisPageValueWithConditions

Examples

Run this code
f <- function(msg)  {
  warning(msg)
}
vwc <- tryKeepConditions({
  f("foo")
  f("bar")
})
vwc.tracebacks(vwc, "warnings")

Run the code above in your browser using DataLab