test_design | R Documentation |
Test whether design steps can be processed and produce valid output for each possible choice.
test_design(
d,
input = NULL,
input_test_code = NULL,
output_test_code = NULL,
...
)
d |
A character vector of the research design steps function names |
input |
input parameter of the first step. Can be either data (passed to first step as is)
or a function. If it is a function, the function is called to generate the input data.
If you do not provide |
input_test_code |
A path to an R file containg test code to verifiy the integrity of |
output_test_code |
A character vector of a length equal to the length of |
... |
Are passed to |
If called without parameters for input
, only the choice_type
list structure is
tested for consistency. If input
is provided, data steps are tested across all choices to verify
that they produce structually valid output without errors or warnings.
If input_test_code
is provided this test code is used to verify input
.
If output_test_code
is provided each step's output is tested.
See the vignette of the package for further details.
The return value testthat::test_file()
## Not run:
print("Sorry. No examples yet.")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.