Check NULL Or
Checks if NULL or passes test.
chk_null_or(x, chk, ..., x_name = NULL)
x |
The object to check. |
chk |
A chk function. |
... |
Arguments passed to chk. |
x_name |
A string of the name of object x or NULL. |
An informative error if the test fails.
chk_null_or(NULL, chk_number) chk_null_or(1, chk_number) try(chk_null_or("1", chk_number))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.