checks: Check

Description Usage Arguments Value Functions Examples

Description

Check whether an object is an error or a warning.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
is.e(obj)

## Default S3 method:
is.e(obj)

## S3 method for class 'err'
is.e(obj)

is.w(obj)

## Default S3 method:
is.w(obj)

## S3 method for class 'err'
is.w(obj)

is.problem(obj)

Arguments

obj

Object to check.

Value

A boolean value.

Functions

Examples

1
2
3
4
err <- e("Whoops!")

is.e(err)
is.w(err)

erratum documentation built on Jan. 4, 2022, 1:08 a.m.