Learn R Programming

backports (version 1.5.0)

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
# 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