Check the function arguments of the outbreak simulation functions

check_outbreak_input()

Value

TRUE if all the checks pass or an error thrown by a checkmate assert_*() function if one or more of the inputs is invalid.

Details

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.