vwc.n {AnalysisPageServer} | R Documentation

## 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"

### Details

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

### Value

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

### Author(s)

Brad Friedman

### Examples

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

[Package AnalysisPageServer version 1.20.0 Index]