autotest_yaml
autotest_yaml
Description
Automatically test inputs to functions specified in a ‘yaml’ template.
Usage
autotest_yaml(
yaml = NULL,
filename = NULL,
test = TRUE,
test_data = NULL,
quiet = FALSE
)
Arguments
Argument |
Description |
---|---|
|
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. |
|
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. |
|
If |
|
Result returned from calling either autotest_types or autotest_package with |
|
If ‘FALSE’, provide printed output on screen. |
Value
An autotest_pkg
object, derived from a tibble , detailing
instances of unexpected behaviour for every parameter of every function.
Seealso
Other yaml:
at_yaml_template
,
examples_to_yaml
Examples
yaml_list <- examples_to_yaml (package = "stats", functions = "reshape")
res <- autotest_yaml (yaml = yaml_list)