[Rcpp-commits] r470 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jan 26 17:34:02 CET 2010


Author: romain
Date: 2010-01-26 17:34:02 +0100 (Tue, 26 Jan 2010)
New Revision: 470

Modified:
   pkg/R/Rcpp.package.skeleton.R
Log:
copy Makevars.win to the generated skeleton

Modified: pkg/R/Rcpp.package.skeleton.R
===================================================================
--- pkg/R/Rcpp.package.skeleton.R	2010-01-26 15:12:04 UTC (rev 469)
+++ pkg/R/Rcpp.package.skeleton.R	2010-01-26 16:34:02 UTC (rev 470)
@@ -68,6 +68,12 @@
 		message( " >> added Makevars file with Rcpp settings" )
 	}
 	
+	Makevars.win <- file.path( src, "Makevars.win" )
+	if( !file.exists( Makevars.win ) ){
+		file.copy( file.path( skeleton, "Makevars.win" ), Makevars.win )
+		message( " >> added Makevars.win file with Rcpp settings" )
+	}
+	
 	header <- readLines( file.path( skeleton, "rcpp_hello_world.h" ) )
 	header <- gsub( "@PKG@", name, header, fixed = TRUE )
 	writeLines( header , file.path( src, "rcpp_hello_world.h" ) )



More information about the Rcpp-commits mailing list