[Rcpp-devel] [Rcpp-commits] r272 - pkg/inst/doc

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Jan 4 22:10:52 CET 2010


Author: romain
Date: 2010-01-04 22:10:50 +0100 (Mon, 04 Jan 2010)
New Revision: 272

Modified:
   pkg/inst/doc/Makefile
   pkg/inst/doc/Rcpp-unitTests.R
   pkg/inst/doc/Rcpp-unitTests.Rnw
Log:
include the txt unit test report in the vignette

Modified: pkg/inst/doc/Makefile
===================================================================
--- pkg/inst/doc/Makefile	2010-01-04 20:59:09 UTC (rev 271)
+++ pkg/inst/doc/Makefile	2010-01-04 21:10:50 UTC (rev 272)
@@ -7,5 +7,3 @@
 Rcpp-unitTests.html: Rcpp-unitTests.R
 	Rscript --default-packages="Rcpp,RUnit,utils,tools" Rcpp-unitTests.R
 
-Rcpp-unitTests.pdf: Rcpp-unitTests.Rnw
-	Rscript --default-packages="Rcpp,RUnit,utils,tools" -e "Sweave('Rcpp-unitTests.Rnw'); texi2dvi( 'Rcpp-unitTests.tex', pdf = TRUE, clean = TRUE ); unlink('RcppUnitTests.tex') "

Modified: pkg/inst/doc/Rcpp-unitTests.R
===================================================================
--- pkg/inst/doc/Rcpp-unitTests.R	2010-01-04 20:59:09 UTC (rev 271)
+++ pkg/inst/doc/Rcpp-unitTests.R	2010-01-04 21:10:50 UTC (rev 272)
@@ -28,4 +28,6 @@
 	file.copy( "Rcpp-unitTests.txt", "/tmp", overwrite = TRUE )
 	file.copy( "Rcpp-unitTests.html", "/tmp", overwrite = TRUE )
 }
-
+Sweave('Rcpp-unitTests.Rnw')
+texi2dvi( 'Rcpp-unitTests.tex', pdf = TRUE, clean = TRUE )
+unlink('RcppUnitTests.tex')

Modified: pkg/inst/doc/Rcpp-unitTests.Rnw
===================================================================
--- pkg/inst/doc/Rcpp-unitTests.Rnw	2010-01-04 20:59:09 UTC (rev 271)
+++ pkg/inst/doc/Rcpp-unitTests.Rnw	2010-01-04 21:10:50 UTC (rev 272)
@@ -7,6 +7,8 @@
 \begin{document}
 \maketitle
 
-See \url{./Rcpp-unitTests.html}
+<<echo=FALSE>>=
+writeLines( readLines( "Rcpp-unitTests.txt" ) )
+@
 
 \end{document}

_______________________________________________
Rcpp-commits mailing list
Rcpp-commits at lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-commits


More information about the Rcpp-devel mailing list