[Rcpp-commits] r726 - pkg/RcppArmadillo/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Feb 17 16:28:08 CET 2010


Author: romain
Date: 2010-02-17 16:28:08 +0100 (Wed, 17 Feb 2010)
New Revision: 726

Added:
   pkg/RcppArmadillo/R/flags.R
Modified:
   pkg/RcppArmadillo/R/zzz.R
Log:
embryo of a CxxFlags()

Added: pkg/RcppArmadillo/R/flags.R
===================================================================
--- pkg/RcppArmadillo/R/flags.R	                        (rev 0)
+++ pkg/RcppArmadillo/R/flags.R	2010-02-17 15:28:08 UTC (rev 726)
@@ -0,0 +1,27 @@
+# Copyright (C)       2010 Dirk Eddelbuettel and Romain Francois
+#
+# This file is part of RcppArmadillo.
+#
+# RcppArmadillo is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# RcppArmadillo is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with RcppArmadillo.  If not, see <http://www.gnu.org/licenses/>.
+
+.__CxxFlags <- function(Rcpp = TRUE, ...){
+	res <- c( 
+		if(Rcpp) Rcpp:::RcppCxxFlags(...), 
+		sprintf( '-I"%s"', system.file("include", package = "RcppArmadillo") ) )
+}
+
+CxxFlags <- function(Rcpp = TRUE, ...){
+	cat( .__CxxFlags(Rcpp = Rcpp, ...), sep = " " )
+}
+

Modified: pkg/RcppArmadillo/R/zzz.R
===================================================================
--- pkg/RcppArmadillo/R/zzz.R	2010-02-17 15:13:36 UTC (rev 725)
+++ pkg/RcppArmadillo/R/zzz.R	2010-02-17 15:28:08 UTC (rev 726)
@@ -1,3 +1,19 @@
+# Copyright (C)       2010 Dirk Eddelbuettel and Romain Francois
+#
+# This file is part of RcppArmadillo.
+#
+# RcppArmadillo is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# RcppArmadillo is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with RcppArmadillo.  If not, see <http://www.gnu.org/licenses/>.
 
 RcppArmadilloExample <- function(){
 	.Call( "RcppArmadilloExample", PACKAGE = "RcppArmadillo" )



More information about the Rcpp-commits mailing list