Details
Starting from an empty msg
vector, with each check
that is returning FALSE
the vector gets a new element - the string
explaining the failure of the validation.
Methods
check(test, string = "")
Check whether the
test
isTRUE
; if so, returnNULL
. Otherwise, add thestring
message into the cumulative messages vectormsg
.result()
Return either cumulative messages vector
msg
(which contains the error messages from all the checks), orNULL
, ifmsg
is empty (i.e. all the checks were successful).