testMatrixMaker | R Documentation |
Will go through all the R files in a package, looking for instances of 'testFrom' on roxygen2 'param' values in function definitions. Once it finds these, it'll expand a grid of all possibilities. This will provide a shortlist of all options to test the code with, although it will not know if the input combination should fail or pass, and if it does pass it should have a certain value.
testMatrixMaker()
This function is a bit brittle for now. It assumes that the 'testFrom' placement will be the last thing on param lines.
will dump out a character vector of expressions suitable to be paired with their testthat expectations.
## Not run: if(interactive()){ #EXAMPLE1 } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.