[Rcpp-commits] r700 - in pkg/RcppExamples: . inst src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Feb 16 17:54:42 CET 2010
Author: edd
Date: 2010-02-16 17:54:42 +0100 (Tue, 16 Feb 2010)
New Revision: 700
Added:
pkg/RcppExamples/DESCRIPTION
pkg/RcppExamples/NAMESPACE
pkg/RcppExamples/NEWS
pkg/RcppExamples/inst/
pkg/RcppExamples/inst/ChangeLog
pkg/RcppExamples/src/Makevars
pkg/RcppExamples/src/Makevars.win
Log:
RcppExamples 0.1.0 passes R CMD check
Added: pkg/RcppExamples/DESCRIPTION
===================================================================
--- pkg/RcppExamples/DESCRIPTION (rev 0)
+++ pkg/RcppExamples/DESCRIPTION 2010-02-16 16:54:42 UTC (rev 700)
@@ -0,0 +1,15 @@
+Package: RcppExamples
+Title: Examples using Rcpp to interface R and C++
+Version: 0.1.0
+Date: $Date: 2010-02-16 10:30:00 -0600 (Tue, 16 Feb 2010) $
+Author: Dirk Eddelbuettel and Romain Francois, based on code written
+ during 2005 and 2006 by Dominick Samperi
+Maintainer: Dirk Eddelbuettel <edd at debian.org>
+Description: Examples for Seamless R and C++ integration
+ The Rcpp package contains a C++ library that facilitates the integration of
+ R and C++ in various ways. This package provides examples.
+Depends: R (>= 2.10.0), Rcpp (>= 0.7.7)
+Suggests: inline (>= 0.3.4), RUnit
+SystemRequirements: None
+URL: http://dirk.eddelbuettel.com/code/rcpp.html, http://romainfrancois.blog.free.fr/index.php?category/R-package/Rcpp
+License: GPL (>= 2)
Added: pkg/RcppExamples/NAMESPACE
===================================================================
--- pkg/RcppExamples/NAMESPACE (rev 0)
+++ pkg/RcppExamples/NAMESPACE 2010-02-16 16:54:42 UTC (rev 700)
@@ -0,0 +1,11 @@
+useDynLib(RcppExamples)
+
+export(RcppExample,
+ print.RcppExample,
+ RcppDateExample,
+ RcppParamsExample,
+ RcppVectorExample
+)
+
+#importFrom( utils, capture.output )
+
Added: pkg/RcppExamples/NEWS
===================================================================
--- pkg/RcppExamples/NEWS (rev 0)
+++ pkg/RcppExamples/NEWS 2010-02-16 16:54:42 UTC (rev 700)
@@ -0,0 +1,3 @@
+0.1.0 (under development)
+
+ o Initial release as a package, carved out of Rcpp 0.7.7
Added: pkg/RcppExamples/inst/ChangeLog
===================================================================
--- pkg/RcppExamples/inst/ChangeLog (rev 0)
+++ pkg/RcppExamples/inst/ChangeLog 2010-02-16 16:54:42 UTC (rev 700)
@@ -0,0 +1,4 @@
+2010-02-16 Dirk Eddelbuettel <edd at debian.org>
+
+ * New package, started from Rcpp 0.7.7
+
Added: pkg/RcppExamples/src/Makevars
===================================================================
--- pkg/RcppExamples/src/Makevars (rev 0)
+++ pkg/RcppExamples/src/Makevars 2010-02-16 16:54:42 UTC (rev 700)
@@ -0,0 +1,33 @@
+## Use the R_HOME indirection to support installations of multiple R version
+PKG_CPPFLAGS=$(shell $(R_HOME)/bin/Rscript -e "Rcpp:::CxxFlags()" )
+PKG_LIBS = $(shell $(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()" )
+## Uncomment this if you want to use C++0x features -- which are not currently portable
+## CLINK_CPPFLAGS=$(shell Rscript -e "Rcpp:::Cxx0xFlags()" )
+
+## As an alternative, one can also add this code in a file 'configure'
+##
+## PKG_CPPFLAGS=`${R_HOME}/bin/Rscript -e "Rcpp:::CxxFlags()"`
+## PKG_LIBS=`${R_HOME}/bin/Rscript -e "Rcpp:::LdFlags()"`
+##
+## sed -e "s|@PKG_LIBS@|${PKG_LIBS}|" \
+## -e "s|@PKG_CPPFLAGS@|${PKG_CPPFLAGS}|" \
+## src/Makevars.in > src/Makevars
+##
+## which together with the following file 'src/Makevars.in'
+##
+## PKG_LIBS = @PKG_LIBS@
+## PKG_CPPFLAGS = @PKG_CPPFLAGS@
+##
+## can be used to create src/Makevars dynamically. This scheme is more
+## powerful and can be expanded to also check for and link with other
+## libraries. It should be complemented by a file 'cleanup'
+##
+## rm src/Makevars
+##
+## which removes the autogenerated file src/Makevars.
+##
+## Of course, autoconf can also be used to write configure files. This is
+## done by a number of packages, but recommended onlu for more advanced users
+## comfortable with autoconf and its related tools.
+
+
Added: pkg/RcppExamples/src/Makevars.win
===================================================================
--- pkg/RcppExamples/src/Makevars.win (rev 0)
+++ pkg/RcppExamples/src/Makevars.win 2010-02-16 16:54:42 UTC (rev 700)
@@ -0,0 +1,5 @@
+
+## This assume that we can call Rscript to ask Rcpp about its locations
+## Use the R_HOME indirection to support installations of multiple R version
+PKG_LIBS = `$(R_HOME)/bin/Rscript -e 'Rcpp:::LdFlags()'`
+PKG_CPPFLAGS = `$(R_HOME)/bin/Rscript -e 'Rcpp:::CxxFlags()'`
More information about the Rcpp-commits
mailing list