autotest_yaml | R Documentation |
Automatically test inputs to functions specified in a 'yaml' template.
autotest_yaml(
yaml = NULL,
filename = NULL,
test = TRUE,
test_data = NULL,
quiet = FALSE
)
yaml |
A 'yaml' template as a character vector, either hand-coded or potentially loaded via readLines function or similar. Should generally be left at default of 'NULL', with template specified by 'filename' parameter. |
filename |
Name (potentially including path) of file containing 'yaml' template. See at_yaml_template for details of template. Default uses template generated by that function, and held in local './tests' directory. |
test |
If |
test_data |
Result returned from calling either autotest_types or
autotest_package with |
quiet |
If 'FALSE', provide printed output on screen. |
An autotest_pkg
object, derived from a tibble, detailing
instances of unexpected behaviour for every parameter of every function.
Other yaml:
at_yaml_template()
,
examples_to_yaml()
## Not run:
yaml_list <- examples_to_yaml (package = "stats", functions = "reshape")
res <- autotest_yaml (yaml = yaml_list)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.