https://github.com/cran/Rcpp
Raw File
Tip revision: 1bd9c7c3cdfb0ec04c6ba375dcef9438472407e3 authored by Dirk Eddelbuettel and Romain Francois on 27 July 2011, 13:41:02 UTC
version 0.9.6
Tip revision: 1bd9c7c
RcppUnitTests.Rd
\name{RcppUnitTests}
\alias{RcppUnitTests}

\title{Rcpp : unit tests results}
\description{
Unit tests results for package Rcpp. 

Unit tests are run automatically at build time and reports are included in the
\samp{doc} directory as html or text. 
}

\seealso{
\ifelse{latex}{}{\ifelse{html}{\url{../doc/unitTests-results/Rcpp-unitTests.html}: html formatted unit test report}{\samp{../doc/unitTests-results/Rcpp-unitTests.html}: html formatted unit test report}}
}

\details{
\ifelse{latex}{}{\ifelse{html}{\out{<pre>}}{}}
\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 ""
}
\ifelse{latex}{}{\ifelse{html}{\out{</pre>}}{}}
}

\examples{
# 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
\dontrun{
source( system.file("unitTests", "runTests.R", package = "Rcpp" ) )
}
}

\keyword{programming}
back to top