BSD Ports

devel/R-Rcpp 1.1.2 NetBSD

Seamless R and C++ integration

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
517bacaa70
License
gnu-gpl-v2 OR gnu-gpl-v3
Categories
devel, math, r
Package size
2009.2 KiB, 4459.4 KiB installed

Description

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.

Install

Binary package:

pkgin install R-Rcpp

From pkgsrc:

cd /usr/pkgsrc/devel/R-Rcpp && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.1.2
NetBSD 10.1 aarch641.1.1.1.1
SmartOS / illumos x86_641.1.2
macOS 15 arm641.1.2

Dependencies

Run dependencies 1

Commit history 2

DateCommitCreditsLog message
517bacaa70 wiz R-Rcpp: update to 1.1.2.
Committed during the freeze since it should help with the execinfo problems on *BSD. Changes in Rcpp release version 1.1.2 (2026-07-01) Changes in Rcpp API: Use of execinfo.h is again conditional to avoid build complexity (Dirk in #1445 addressing #1442) An internal state component for Datetime is now int (Dirk in #1448 and #1449 fixing #1447) Three new (in R 4.6.0) attribute accessors are used conditionally (Dirk in #1450 closing #1432) An UBSAN error in the Sugar-based NA comparison has been corrected (Iñaki in #1453 fixing #1452) Treatment of Inf outside of integer range in Sugar function has been corrected (Iñaki in #1458 fixing #1455) …
9de6194757 mef (devel/R-Rcpp) Fix build on Linux and on Darwin