diff options
author | brook <brook> | 2014-08-26 16:28:47 +0000 |
---|---|---|
committer | brook <brook> | 2014-08-26 16:28:47 +0000 |
commit | 13b0eaa842dca7c25ba162e7eac78b8f59c6b6bb (patch) | |
tree | ccd8cb36d3d634a0cb070e39a9dc5eb0bb30c54c /math | |
parent | bb722ba4a1f2d5db5fca257e89b7756d0ead6a26 (diff) | |
download | pkgsrc-13b0eaa842dca7c25ba162e7eac78b8f59c6b6bb.tar.gz |
Initial revision.
Diffstat (limited to 'math')
-rw-r--r-- | math/R-Rcpp/DESCR | 24 | ||||
-rw-r--r-- | math/R-Rcpp/Makefile | 36 | ||||
-rw-r--r-- | math/R-Rcpp/distinfo | 5 |
3 files changed, 65 insertions, 0 deletions
diff --git a/math/R-Rcpp/DESCR b/math/R-Rcpp/DESCR new file mode 100644 index 00000000000..0b47a0eca56 --- /dev/null +++ b/math/R-Rcpp/DESCR @@ -0,0 +1,24 @@ +The Rcpp package provides R functions as well as a C++ library which +facilitate the integration of R and C++. + +R data types (SEXP) are matched to C++ objects in a class hierarchy. +All R types are supported (vectors, functions, environment, etc ...) +and each type is mapped to a dedicated class. For example, numeric +vectors are represented as instances of the Rcpp::NumericVector class, +environments are represented as instances of Rcpp::Environment, +functions are represented as Rcpp::Function, etc ... The +"Rcpp-introduction" vignette provides a good entry point to Rcpp. + +Rcpp also provides Rcpp modules, a framework that allows exposing C++ +functions and classes to the R level. The "Rcpp-modules" vignette +details the current set of features of Rcpp-modules. + +Rcpp includes a concept called Rcpp sugar that brings many R functions +into C++. Sugar takes advantage of lazy evaluation and expression +templates to achieve great performance while exposing a syntax that is +much nicer to use than the equivalent low-level loop code. The +"Rcpp-sugar" vignette gives an overview of the feature. + +Additional documentation is available via the paper by Eddelbuettel +and Francois (2011, JSS) paper and the book by Eddelbuettel (2013, +Springer); see 'citation("Rcpp")' for details. diff --git a/math/R-Rcpp/Makefile b/math/R-Rcpp/Makefile new file mode 100644 index 00000000000..5940b84561d --- /dev/null +++ b/math/R-Rcpp/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1 2014/08/26 16:28:47 brook Exp $ + +CATEGORIES= math +MASTER_SITES= ${MASTER_SITE_R_CRAN:=contrib/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= ${R_HOMEPAGE_BASE}/Rcpp/ +COMMENT= Seamless R and C++ Integration +LICENSE= gnu-gpl-v2 + +R_PKGNAME= Rcpp +R_PKGVER= 0.11.2 + +USE_LANGUAGES+= c++ + +REPLACE_R+= inst/examples/*/*.R +REPLACE_R+= inst/examples/*/*.r +REPLACE_R+= inst/unitTests/*.R + +REPLACE_RSCRIPT+= inst/discovery/cxx0x.R + +REPLACE_SH+= inst/examples/ConvolveBenchmarks/buildAndRun.sh +REPLACE_SH+= inst/examples/ConvolveBenchmarks/overhead.sh + +REPLACE_INTERPRETER+= R +REPLACE.R.old= .*/r +REPLACE.R.new= ${PREFIX}/bin/R +REPLACE_FILES.R= ${REPLACE_R} + +REPLACE_INTERPRETER+= Rscript +REPLACE.Rscript.old= .*Rscript +REPLACE.Rscript.new= ${PREFIX}/bin/Rscript +REPLACE_FILES.Rscript= ${REPLACE_RSCRIPT} + +.include "../../math/R/Makefile.extension" +.include "../../mk/bsd.pkg.mk" diff --git a/math/R-Rcpp/distinfo b/math/R-Rcpp/distinfo new file mode 100644 index 00000000000..a6d41337fc5 --- /dev/null +++ b/math/R-Rcpp/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2014/08/26 16:28:47 brook Exp $ + +SHA1 (R/Rcpp_0.11.2.tar.gz) = 7a81e29c70770bb0911ee9e970fa200a76a5e29f +RMD160 (R/Rcpp_0.11.2.tar.gz) = 92e8479c49cbee5e2568f0475cce595f84efecc8 +Size (R/Rcpp_0.11.2.tar.gz) = 2004313 bytes |