Check for a function argument.
Throws exception if checks are not passed. Note that argument is evaluated when checked.
This function is superseded by the package checkmate and might get deprecated in the future. Please
checkArg(x, cl, s4 = FALSE, len, min.len, max.len, choices, subset, lower = NA, upper = NA, na.ok = TRUE, formals)
x |
[any] |
cl |
[ |
s4 |
[ |
len |
[ |
min.len |
[ |
max.len |
[ |
choices |
[any] |
subset |
[any] |
lower |
[ |
upper |
[ |
na.ok |
[ |
formals |
[ |
Nothing.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.