[Rcpp-commits] r3427 - in pkg/RcppEigen: . inst/unitTests

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Dec 23 14:50:47 CET 2011


Author: edd
Date: 2011-12-23 14:50:47 +0100 (Fri, 23 Dec 2011)
New Revision: 3427

Modified:
   pkg/RcppEigen/ChangeLog
   pkg/RcppEigen/inst/unitTests/runTests.R
Log:
modify fallback location of unitTest output files to be the RcppEigen.Rcheck/ dir


Modified: pkg/RcppEigen/ChangeLog
===================================================================
--- pkg/RcppEigen/ChangeLog	2011-12-23 13:36:03 UTC (rev 3426)
+++ pkg/RcppEigen/ChangeLog	2011-12-23 13:50:47 UTC (rev 3427)
@@ -1,3 +1,8 @@
+2011-12-23  Dirk Eddelbuettel  <edd at debian.org>
+
+	* inst/unitTests/runTests.R: unit tests output 'fallback' directory
+	changed to '..' and files are now in top-level of $pkg.Rcheck/
+
 2011-11-14  Douglas Bates  <bates at stat.wisc.edu>
 
 	* vignettes/RcppEigen-intro-nojss.Rnw: Many, many changes by Dirk

Modified: pkg/RcppEigen/inst/unitTests/runTests.R
===================================================================
--- pkg/RcppEigen/inst/unitTests/runTests.R	2011-12-23 13:36:03 UTC (rev 3426)
+++ pkg/RcppEigen/inst/unitTests/runTests.R	2011-12-23 13:50:47 UTC (rev 3427)
@@ -66,13 +66,8 @@
             }
         }
 
-        # if it did not work, try to use /tmp
-        if ( is.null(output) ){
-            if ( file.exists( "/tmp" ) ){
-                output <- "/tmp"
-            } else {
-                output <- getwd()
-            }
+        if( is.null(output) ) {         # if it did not work, use parent dir
+            output <- ".."              # as BDR does not want /tmp to be used
         }
 
         ## Print results



More information about the Rcpp-commits mailing list