warningCondition: Backport of warningCondition and errorCondition for R < 3.6.0

View source: R/warningCondition.R

warningConditionR Documentation

Backport of warningCondition and errorCondition for R < 3.6.0

Description

See the original description in base::warningCondition/base::errorCondition.

Usage

warningCondition(msg, ..., class = NULL, call = NULL)

errorCondition(msg, ..., class = NULL, call = NULL)

Examples

# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_warningCondition = getFromNamespace("warningCondition", "backports")
bp_warningCondition("package backports not found")

backports documentation built on June 24, 2024, 5:24 p.m.