R/checking.R
check_outbreak_input.Rd
Check the function arguments of the outbreak simulation functions
check_outbreak_input()
TRUE
if all the checks pass or an error thrown by a checkmate
assert_*()
function if one or more of the inputs is invalid.
If more than one argument is invalid, only a single error is thrown with the first invalid argument encountered.
Arguments being checked are taken from the parent environment
(parent.frame()
) rather than passed via named arguments.