powered by
Checks if NULL or passes test.
chk_null_or(x, chk, ..., vld, x_name = NULL)
An informative error if the test fails.
The object to check.
A chk function. Soft-deprecated for vld.
Arguments passed to chk.
A vld function.
A string of the name of object x or NULL.
chk_null_or(NULL, chk_number) chk_null_or(1, chk_number) try(chk_null_or("1", chk_number))
Run the code above in your browser using DataLab