Skip to content

[Rcpp-devel] ?RcppUnitTests

4 messages · Dirk Eddelbuettel, Romain Francois

#
Going a bit further in terms of unit tests trickery, I have added stuff 
so that ?RcppUnitTests brings a file that contains text version of the 
unit test reports and links to html version (if rendered in html).

This uses R >= 2.10.0 markup, so I guess we will have to find a way to 
not include the file for vintage versions of R.

I'll blog about this to expose the full trick.

Romain
#
I am still not sure that this is worth it -- I cannot see users who will call
up help to look at unit tests.  What matters is that we have them, and that
those who know RUnit also know they can run them at install time. I am not
sure the rest adds much value.  But hey you really seem to like it so go
nuts. 

What about our renaming-one-more-time or is RObject a keeper?

Dirk


* checking package vignettes in 'inst/doc' ... WARNING
Package vignettes without corresponding PDF:
  /home/edd/svn/rcpp/pkg/inst/doc/Rcpp-unitTests.Rnw
* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
! LaTeX Error: \begin{Rdsection} on input line 585 ended by \end{verbatim}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...
! LaTeX Error: \begin{Details} on input line 585 ended by \end{list}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...
! LaTeX Error: \begin{document} ended by \end{Rdsection}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...
! Extra \endgroup.
<recently read> \endgroup

l.592 \end{Details}

! LaTeX Error: \begin{document} ended by \end{Details}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...
! Extra \endgroup.
<recently read> \endgroup

l.592 \end{Details}

* checking PDF version of manual without index ... ERROR
edd at ron:~/svn/rcpp$
#
On 12/30/2009 02:00 PM, Dirk Eddelbuettel wrote:
I do like it, but if you prefer that it goes, that's fine too
I will not complain if you rename it.
I'll check that

  
    
#
This is not the case when you R CMD check on the tarball
I can not reproduce this. Which version of R are you running, can you 
send me the tex file. This is probably due to these lines :

\ifelse{html}{\out{<pre>}}{\ifelse{latex}{\out{\begin{verbatim}}}{}}
\Sexpr[echo=FALSE,results=text]{paste(readLines(system.file("doc", 
"Rcpp-unitTests.txt", package = "Rcpp" ) ), collapse="\n\n")}
\ifelse{html}{\out{</pre>}}{\ifelse{latex}{\out{\end{verbatim}}}{}}