Description Details See Also Examples
Unit tests results for package Rcpp.
Unit tests are run automatically at build time and reports are included in the doc directory as html or text.
1 2 3 4 | \Sexpr[echo=FALSE,results=text]{
txt <- system.file( "doc", "unitTests-results", "Rcpp-unitTests.txt", package = "Rcpp" )
if( file.exists( txt ) ) paste( readLines( txt ), collapse = "\n\n" ) else ""
}
|
../doc/unitTests-results/Rcpp-unitTests.html: html formatted unit test report
1 2 3 4 5 6 7 8 9 10 | # unit tests are in the unitTests directory of the package
list.files( system.file("unitTests", package = "Rcpp" ),
pattern = "^runit", full = TRUE )
# trigger the unit tests preparation, follow printed instructions
# on how to run them
## Not run:
source( system.file("unitTests", "runTests.R", package = "Rcpp" ) )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.