Description Usage Arguments Details
Run transformations on all *-in files in a test directory and compare them with their *-out counterpart.
1 2 3 4 |
test |
The test to run. It corresponds to a folder name in tests/testthat. |
sub_test |
A regex pattern to further reduce the amount of test files
to be tested in the test. |
write_back |
Whether the results of the transformation should be written to the output file. |
write_tree |
Whether or not the tree structure of the test should be
computed and written to a file. Note that this needs R >= 3.2
(see |
transformer |
A function to apply to the content of |
... |
Parameters passed to transformer function. |
Each file name that matches test
and sub_test
and ends with
"-in" is considered as an input to test. Its counterpart,
the reference to compare it against is the *-out file. It is constructed
by taking the substring of the *-in.R file before the
first dash and adding -out.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.