View source: R/RtestingHelpers.R
testmeFileSingle | R Documentation |
Identify tests in an R file and run the tests
testmeFileSingle(file, expectationsFolder, useGit, print = F, logger = LogAt1)
file |
Path to R-script |
expectationsFolder |
Folder into which test results are either vivified (see |
useGit |
logical to inidicate whether vivifications are to be commited by a call to 'git' |
print |
logicial to indicate whether a report is to be printed |
logger |
function that is used to print results, can be used to redirect output |
This function takes the path to a single R-file. Function names ending in '_test'
are
considered to contain test definitions. These functions are called and test results are returned.
returns a list for each test executed that contains testing status and number of subtests run
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.