Check a distribution function returns valid output and has the correct number of arguments
Source:R/checking.R
check_dist_func.RdCheck a distribution function returns valid output and has the correct number of arguments
Arguments
- func
a function.
- dist_name
a
characterstring: the name of the distribution function being passed (e.g."incubation_period")- n_req_args
a single
numeric: the number of required arguments- func_eval_min
a single
numeric: the lower bound of valid numeric output by thefuncargument (i.e. the minimum of the acceptable value in the function's codomain). The default is0sofuncmust return non-negative values.