pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/R-Rcpp Initial import of Rcpp v0.11.2 as devel/R...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d8d7e15a9ef6
branches:  trunk
changeset: 639618:d8d7e15a9ef6
user:      brook <brook%pkgsrc.org@localhost>
date:      Fri Sep 19 20:12:51 2014 +0000

description:
Initial import of Rcpp v0.11.2 as devel/R-Rcpp.

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.

Note: this commit is part of reorganizing some of the recently
imported R packages, which are being reimported into more appropriate
categories (and removed from math) as a result of a recent discussion
on tech-pkg and privately with wiz@.  See the thread starting with:

  http://mail-index.netbsd.org/tech-pkg/2014/09/05/msg013558.html

diffstat:

 devel/R-Rcpp/DESCR         |  24 ++++++++++++++++++++++++
 devel/R-Rcpp/Makefile      |  36 ++++++++++++++++++++++++++++++++++++
 devel/R-Rcpp/buildlink3.mk |  12 ++++++++++++
 devel/R-Rcpp/distinfo      |   5 +++++
 4 files changed, 77 insertions(+), 0 deletions(-)

diffs (93 lines):

diff -r a1567dbc5e66 -r d8d7e15a9ef6 devel/R-Rcpp/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/R-Rcpp/DESCR        Fri Sep 19 20:12:51 2014 +0000
@@ -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 -r a1567dbc5e66 -r d8d7e15a9ef6 devel/R-Rcpp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/R-Rcpp/Makefile     Fri Sep 19 20:12:51 2014 +0000
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2014/09/19 20:12:51 brook Exp $
+
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_R_CRAN:=contrib/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+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 -r a1567dbc5e66 -r d8d7e15a9ef6 devel/R-Rcpp/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/R-Rcpp/buildlink3.mk        Fri Sep 19 20:12:51 2014 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/09/19 20:12:51 brook Exp $
+
+BUILDLINK_TREE+=       R-Rcpp
+
+.if !defined(R_RCPP_BUILDLINK3_MK)
+R_RCPP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.R-Rcpp+= R-Rcpp>=0.11.2
+BUILDLINK_PKGSRCDIR.R-Rcpp?=   ../../devel/R-Rcpp
+.endif # R_RCPP_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -R-Rcpp
diff -r a1567dbc5e66 -r d8d7e15a9ef6 devel/R-Rcpp/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/R-Rcpp/distinfo     Fri Sep 19 20:12:51 2014 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/09/19 20:12:51 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



Home | Main Index | Thread Index | Old Index