check_condition: Check if an error condition is satisfied

View source: R/check_condition.R

check_conditionR Documentation

Check if an error condition is satisfied

Description

Check if an error condition is satisfied

Usage

check_condition(condition, message, fatal = TRUE)

Arguments

condition

logical test which if TRUE will cause the function to return an error message

message

error message to be displayed if condition is met.

fatal

if TRUE, error message is fatal, i.e., it will abort the parent function which called check_condition.


tmatta/lsasim documentation built on Aug. 25, 2023, 5:50 p.m.