Learn R Programming

AnalysisPageServer (version 1.6.2)

vwc.n: vwc.n

Description

Get number of conditions of a given type for an AnalysisPageValueWithConditions

Usage

vwc.n(vwc, type)

Arguments

vwc
AnalysisPageValueWithConditions
type
"messages", "warnings" or "error"

Value

Number of conditions. (For "error" it can only be 0 or 1, and is equivalent to calling as.integer(vwc.is.error())).

Details

Get number of conditions of a given type for an AnalysisPageValueWithConditions.

Examples

Run this code
vwc <- tryKeepConditions({stop("This isn't going to work")})
vwc.n(vwc, "error")

Run the code above in your browser using DataLab