| checkNull {checkmate} | R Documentation |
Check if an argument is NULL
checkNull(x) assertNull(x, .var.name) testNull(x)
x |
[any] |
.var.name |
[character(1)] |
Depending on the function prefix:
If the check is successful, all functions return TRUE.
If the check is not successful, assertNull throws an error message,
testNull returns FALSE and checkNull returns
a string with the error message.
testNull(NULL) testNull(1)