Chk OR
chkor_vld(...)
An informative error if the test fails.
Multiple vld_
calls.
A common mistake is to pass chk_
calls.
chkor_vld()
is relatively slow.
If at all possible use chk_null_or()
or first test using the individual
vld_
functions and then call chkor_vld()
to generate an informative
error message.
chk_null_or()
chkor_vld()
chkor_vld(vld_flag(TRUE))
try(chkor_vld(vld_flag(1)))
try(chkor_vld(vld_flag(1), vld_flag(2)))
chkor_vld(vld_flag(1), vld_flag(TRUE))
Run the code above in your browser using DataLab