vwc.tracebacks: vwc.tracebacks

Description Usage Arguments Details Value Author(s) Examples

View source: R/error.R

Description

Return traceback(s) for an AnalysisPageValueWithConditions

Usage

1
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)).

Details

Return traceback(s) for an AnalysisPageValueWithConditions

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.

Author(s)

Brad Friedman

Examples

1
2
3
4
5
6
7
8
f <- function(msg)  {
  warning(msg)
}
vwc <- tryKeepConditions({
  f("foo")
  f("bar")
})
vwc.tracebacks(vwc, "warnings")

AnalysisPageServer documentation built on April 28, 2020, 6:32 p.m.