warningCondition: Backport of warningCondition and errorCondition for R < 3.6.0

Description Usage Examples

View source: R/warningCondition.R

Description

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

Usage

1
2
3

Examples

1
2
3
4
# 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")

Example output

<warning: package backports not found>

backports documentation built on Dec. 13, 2021, 5:08 p.m.