[Rcpp-commits] r1864 - pkg/Rcpp/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Jul 17 03:00:43 CEST 2010


Author: edd
Date: 2010-07-17 03:00:43 +0200 (Sat, 17 Jul 2010)
New Revision: 1864

Modified:
   pkg/Rcpp/src/Date.cpp
Log:
two changes which may, with some luck, appease Solaris


Modified: pkg/Rcpp/src/Date.cpp
===================================================================
--- pkg/Rcpp/src/Date.cpp	2010-07-16 11:59:23 UTC (rev 1863)
+++ pkg/Rcpp/src/Date.cpp	2010-07-17 01:00:43 UTC (rev 1864)
@@ -28,6 +28,7 @@
 #include <Rcpp/Date.h>
 #include <Rcpp/Function.h>
 #include <time.h>		// for gmtime
+#include <unistd.h>		// for read and close on Solaris
 
 namespace Rcpp {
 
@@ -686,12 +687,13 @@
 		if (strchr(name, '.') != NULL) doaccess = TRUE;
 		name = fullname;
 	    }
-	    if (doaccess && access(name, R_OK) != 0) {
+	    // edd 16 Jul 2010  comment out whole block
+	    //if (doaccess && access(name, R_OK) != 0) {
 		// edd 08 Jul 2010  we use this without TZ for dates only 
 		//                  so no need to warn
 		//Rf_warning("unknown timezone '%s'", sname);
-		return -1;
-	    }
+		//return -1;
+	    //}
 	    if ((fid = open(name, OPEN_MODE)) == -1) {
 		// edd 08 Jul 2010  we use this without TZ for dates only 
 		//                  so no need to warn



More information about the Rcpp-commits mailing list