checks: Check

checksR Documentation

Check

Description

Check whether an object is an error or a warning.

Usage

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

  • is.e: Whether the object is an error.

  • is.w: Whether the object is a warning.

  • is.problem: Whether the object is an error or a warning.

Examples

err <- e("Whoops!")

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


devOpifex/erratum documentation built on Feb. 5, 2024, 1:58 p.m.