View source: R/RtestingHelpers.R
TestMe | R Documentation |
Searches the current function for test definitions, runs the tests and compares to expectations.
TestMe(mode = list(), which = -2)
mode |
list with modes of comparison. By default |
which |
integer to indicate which environment relative to current is to be used to look for tests. |
undefined return value
## Not run:
myTests = function() {
T1 = 1 + 1;
T2 = sqrt(exp(10));
TestMe(list(T2 = 'round8'));
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.