Automatically writes the text of a
testthat::expect_equal test of an expression.
an expression to be tested.
where should the results go to? The empty string means that it goes to the console.
additional arguments to
text is written to the console or to a file.
Some functions are hard to test, like
It seems like this one would be too, but in fact it is self-testing.
If the test it writes doesn't pass in the same environment, then it
must have done something wrong.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.