[Rcpp-commits] r709 - pkg/Rcpp/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Feb 16 23:56:29 CET 2010


Author: edd
Date: 2010-02-16 23:56:28 +0100 (Tue, 16 Feb 2010)
New Revision: 709

Modified:
   pkg/Rcpp/R/RcppLdpath.R
Log:
on Windows, protect path with quotes


Modified: pkg/Rcpp/R/RcppLdpath.R
===================================================================
--- pkg/Rcpp/R/RcppLdpath.R	2010-02-16 21:21:00 UTC (rev 708)
+++ pkg/Rcpp/R/RcppLdpath.R	2010-02-16 22:56:28 UTC (rev 709)
@@ -3,10 +3,14 @@
 ## plus optinally an arch-specific directory on system building multi-arch
 RcppLdPath <- function() {
     if (nzchar(.Platform$r_arch)) {	## eg amd64, ia64, mips
-        system.file("lib",.Platform$r_arch,package="Rcpp")
+        path <- system.file("lib",.Platform$r_arch,package="Rcpp")
     } else {
-        system.file("lib",package="Rcpp")
+        path <- system.file("lib",package="Rcpp")
     }
+    if (.Platform$OS.type=="windows") {
+        path <- paste('"', path, '"', sep="")
+    }
+    path
 }
 
 ## Provide linker flags -- i.e. -L/path/to/libRcpp -- as well as an



More information about the Rcpp-commits mailing list