powered by
If the expression in ... is not TRUE, warning is called, producing a warning message indicating the expression which was not true.
TRUE
warning
warnifnot(...)
any R expression, which should evaluate to TRUE
warnifnot(TRUE) warnifnot(FALSE) warnifnot(1 + 1 == 3)
Run the code above in your browser using DataLab