| check_arguments {modeltests} | R Documentation |
Check that tidying methods use allowed argument names
Description
Call this function to perform tests. If a tests fails, an informative error will be thrown. Otherwise silent.
Tests when strict = FALSE:
None
Tests when strict = TRUE:
-
tidy_methodhas aconf.intargument if it has aconf.levelargument. -
tidy_methodhas aconf.levelargument if it has aconf.intargument. -
conf.intdefaults toFALSEwhen present. -
conf.leveldefaults to '0.95“ when present. -
exponentiatedefaults toFALSEwhen present. All arguments to
tidy_methodare listed in the argument_glossary.
Usage
check_arguments(tidy_method, strict = TRUE)
Arguments
tidy_method |
A tidying method. For example: |
strict |
Logical indicating whether the strict version of tests should be used. Defaults
to |
Value
An invisible NULL. This function should be called for side effects, not return values.
See Also
testthat, testthat::expect_true()