backports (version 1.1.5)

warningCondition: 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)

Arguments

Examples

Run this code
# NOT RUN {
# 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")
# }

Run the code above in your browser using DataLab