[Rcpp-commits] r1497 - pkg/RcppArmadillo/tests

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jun 9 00:32:03 CEST 2010


Author: edd
Date: 2010-06-09 00:32:02 +0200 (Wed, 09 Jun 2010)
New Revision: 1497

Modified:
   pkg/RcppArmadillo/tests/doRUnit.R
Log:
apply fix of blanking R_TESTS borrowed from Rcpp


Modified: pkg/RcppArmadillo/tests/doRUnit.R
===================================================================
--- pkg/RcppArmadillo/tests/doRUnit.R	2010-06-08 19:11:04 UTC (rev 1496)
+++ pkg/RcppArmadillo/tests/doRUnit.R	2010-06-08 22:32:02 UTC (rev 1497)
@@ -21,7 +21,13 @@
 
     stopifnot(file.exists(path), file.info(path.expand(path))$isdir)
 
+    ## without this, we get unit test failures
+    Sys.setenv( R_TESTS = "" )
+
+    Rcpp.unit.test.output.dir <- getwd()
+
     source(file.path(path, "runTests.R"), echo = TRUE)
+
 } else {
     print( "package RUnit not available, cannot run unit tests" )
 }



More information about the Rcpp-commits mailing list