Utility for testing how a function deals with missing required arguments. It calls the function length(args)
times, each time
omitting one argument
missing_argument_test(fun, args, outcomes)
list
of required arguments to fun
args
with expected outcomes for each test. Names should match those of args
. Values should be either "FAIL", if the test is expected to throw an error, or anything else if it is expected to pass.