assert_function {sgapi} | R Documentation |
Escape Function in Case of Errors
Description
Evaluate condition and return error message if condition not satisfied.
Usage
assert_function(condition, msg)
Arguments
condition |
a logical expresssion (e.g. is.null(test_variable)) |
msg |
the error message returned if the condition is not met. |
Value
No return value, called for side effects.
Examples
assert_function(1==2,"Incorrect inequality")
[Package sgapi version 1.0.2 Index]