Performs unit tests defined in this package by running
example(unitTests.svUnit)
. Tests are in runit*.R
files
Located in the '/unitTests' subdirectory or one of its subdirectories
('/inst/unitTests' and subdirectories in package sources).
This method of integrating svUnit with R CMD CHECK
is stolen
from the SciViews-K example written by Philippe Grosjean
(phgrosjean@sciviews.org) and available from
http://www.sciviews.org/SciViews-K/SciViews-K_UnitManual_0.6.zip.
1 2 3 4 5 6 7 8 9 | library(svUnit)
# Make sure to clear log of errors and failures first
clearLog()
# Run all test units defined in the 'rino package
(runTest(svSuite("package:rino"), "rino"))
# Check errors at the end of the process (needed to interrupt R CMD check)
errorLog()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.