powered by
Evaluate condition and return error message if condition not satisfied.
assert_function(condition, msg)
No return value, called for side effects.
a logical expresssion (e.g. is.null(test_variable))
the error message returned if the condition is not met.
assert_function(1==2,"Incorrect inequality")
Run the code above in your browser using DataLab