./devel/R-Rcpp, Seamless R and C++ integration

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ]


Branch: CURRENT, Version: 1.1.1.1.1, Package name: R-Rcpp-1.1.1.1.1, Maintainer: pkgsrc-users

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.


Required to run:
[math/R]

Required to build:
[pkgtools/cwrappers]

Master sites: (Expand)


Version history: (Expand)


CVS history: (Expand)


   2026-06-06 01:49:28 by Makoto Fujiwara | Files touched by this commit (3)
Log message:
(devel/R-Rpp) Trying to fix build either on *BSD and SmartOS by SUBST

Tested on NetBSD/amd64 11.99.6 and SmartOS
   SunOS smaortOS 5.11 joyent_20260528T000227Z i86pc i386 i86pc

To my knowledge, neither (ifneq and endif) nor (if .endif) clause in \ 
src/Makevars does
work, sorry, so SUBST frame work are used for now, please improve this changes,
thanks
   2026-06-02 16:26:19 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(devel/R-Rcpp) Experimental (= not tested) fix for SmartOS
   2026-05-21 11:11:08 by Makoto Fujiwara | Files touched by this commit (7) | Package updated
Log message:
(devel/R-Rcpp) Updated 1.0.14 to 1.1.1.1.1

(pkgsrc)
       - Three patches dropped
       - Added  patch for src/Makevars (by looking at devel/R-fs)
	 to take care the issue of not finding the function backtrace_symbol
         (Atsushi Toyokura helped me a lot on this modification)
       - Tested only on NetBSD (9.4), Linux and SunOS are not tested, sorry

(upstream)
Changes in Rcpp non-release version 1.1.1-1.1 (2026-04-19):

        * Please see pr #1466 addressing #1465 for context (plus change
          from #1460, and R_getRegisteredNamespace from #1469)

        * This is an unplanned, unscheduled and uncalled for
          non-release made solely to unplug CRAN from late-breaking
          changes in R 4.6.0

        * Version 1.1.1-1.1 is identical to 1.1.1-1 apart from
          DESCRIPTION, ChangeLog and NEWS and exist solely to increment
          the version counter.

Changes in Rcpp release version 1.1.1 (2026-01-08):

        * Changes in Rcpp API:

            * An unused old R function for a compiler version check has
              been removed after checking no known package uses it
              (Dirk in #1395)

            * A narrowing warning is avoided via a cast (Dirk in #1398)

            * Demangling checks have been simplified (I<c3><b1>aki in
              #1401 addressing #1400)

            * The treatment of signed zeros is now improved in the
              Sugar code (I<c3><b1>aki in #1404)

            * Preparations for phasing out use of 'Rf_error' have been
              made (I<c3><b1>aki in #1407)

            * The long-deprecated function 'loadRcppModules()' has been
              removed (Dirk in #1416 closing #1415)

            * Some non-API includes from R were refactored to
              accommodate R-devel changes (I<c3><b1>aki in #1418
              addressing #1417)

            * An accessor to 'Rf_rnbeta' has been removed (Dirk in
              #1419 also addressing #1420)

            * Code accessing non-API 'Rf_findVarInFrame' now uses
              'R_getVarEx' (Dirk in #1423 fixing #1421)

            * Code conditional on the R version now expects at least R
              3.5.0; older code has been removed (Dirk in #1426 fixing
              #1425)

            * The non-API 'ATTRIB' entry point to the R API is no
              longer used (Dirk in #1430 addressing #1429)

            * The unwind-protect mechanism is now used unconditionally
              (Dirk in #1437 closing #1436)

        * Changes in Rcpp Attributes:

            * The OpenMP plugin has been generalized for different
              macOS compiler installations (Kevin in #1414)

        * Changes in Rcpp Documentation:

            * Vignettes are now processed via a new "asis" processor
              adopted from 'R.rsp' (Dirk in #1394 fixing #1393)

            * R is now cited via its DOI (Dirk)

            * A (very) stale help page has been removed (Dirk in #1428
              fixing #1427)

            * The main README.md was updated emphasizing r-universe in
              favor of the local drat repos (Dirk in #1431)

        * Changes in Rcpp Deployment:

            * A temporary change in R-devel concerning NA part in
              complex variables was accommodated, and then reverted
              (Dirk in #1399 fixing #1397)

            * The macOS CI runners now use macos-14 (Dirk in #1405)

            * A message is shown if 'R.h' is included before Rcpp
              headers as this can lead to errors (Dirk in #1411 closing
              #1410)

            * Old helper functions use 'message()' to signal they are
              not used, deprecation and removal to follow (Dirk in
              #1413 closing #1412)

            * Three tests were being silenced following #1413 (Dirk in
              #1422)

            * The heuristic whether to run all available tests was
              refined (Dirk in #1434 addressing #1433)

            * Coverage has been tweaked via additional '#nocov' tags
              (Dirk in #1435)

        * Non-release Changes:

            * Two interim non-releases 1.1.0.8.1 and .2 were made in
              order to unblock CRAN due to changes in R-devel rather
              than Rcpp

Changes in Rcpp release version 1.1.0 (2025-07-01):

        * Changes in Rcpp API:

            * C++11 is now the required minimal C++ standard

            * The 'std::string_view' type is now covered by 'wrap()'
              (Lev Kandel in #1356 as discussed in #1357)

            * A last remaining 'DATAPTR' use has been converted to
              'DATAPTR_RO' (Dirk in #1359)

            * Under R 4.5.0 or later, 'R_ClosureEnv' is used instead of
              'CLOENV' (Dirk in #1361 fixing #1360)

            * Use of 'lsInternal' switched to 'lsInternal3' (Dirk in
              #1362)

            * Removed compiler detection macro in a header cleanup
              setting C++11 as the minunum (Dirk in #1364 closing
              #1363)

            * Variadic templates are now used onconditionally given
              C++11 (Dirk in #1367 closing #1366)

            * Remove 'RCPP_USING_CXX11' as a '#define' as C++11 is now
              a given (Dirk in #1369)

            * Additional cleanup for '__cplusplus' checks (I<c3><b1>aki
              in #1371 fixing #1370)

            * Unordered set construction no longer needs a macro for
              the pre-C++11 case (I<c3><b1>aki in #1372)

            * Lambdas are supported in a Rcpp Sugar functions
              (I<c3><b1>aki in #1373)

            * The Date(time)Vector classes now have default ctor (Dirk
              in #1385 closing #1384)

            * Fixed an issue where Rcpp::Language would duplicate its
              arguments (Kevin in #1388, fixing #1386)

        * Changes in Rcpp Attributes:

            * The C++26 standard now has plugin support (Dirk in #1381
              closing #1380)

        * Changes in Rcpp Documentation:

            * Several typos were correct in the NEWS file (Ben Bolker
              in #1354)

            * The Rcpp Libraries vignette mentions 'PACKAGE_types.h' to
              declare types used in 'RcppExports.cpp' (Dirk in #1355)

            * The vignettes bibliography file was updated to current
              package versions, and now uses doi references (Dirk in
              #1389)

        * Changes in Rcpp Deployment:

            * 'Rcpp.package.skeleton()' creates 'URL' and 'BugReports'
              if given a GitHub username (Dirk in #1358)

            * R 4.4.* has been added to the CI matrix (Dirk in #1376)

            * Tests involving NA propagation are skipped under
              linux-arm64 as they are under macos-arm (Dirk in #1379
              closing #1378)
   2025-02-03 14:24:25 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(devel/R-Rcpp) Updated 1.0.13.1 to 1.0.14

2025-01-11  Dirk Eddelbuettel  <[email protected]>

        * DESCRIPTION (Date, Version): Release 1.0.14

        * inst/include/Rcpp/config.h: Idem
        * inst/NEWS.Rd: Idem
        * vignettes/rmd/Rcpp.bib: Idem
        * inst/bib/Rcpp.bib: Idem
	* vignettes/pdf/*: Rebuilt

2025-01-01  Dirk Eddelbuettel  <[email protected]>

	* inst/include/Rcpp/Benchmark/Timer.h (R_NO_REMAP): Protect include
	with preceding #ifndef now that R 4.5.0 will set this too

2024-11-25  Dirk Eddelbuettel  <[email protected]>

	* DESCRIPTION (Version, Date): Roll micro version to 1.0.13.6
	* inst/include/Rcpp/config.h (RCPP_DEV_VERSION): Idem

	* inst/tinytest/test_date.R: Minor adjustment to datetime format test
	following R Dev Day change for R bug 17350 (and issue #1347 here)

2024-11-25  Simon Guest  <[email protected]>

	* src/attributes.cpp: fix CPP source having to be writable

2024-11-03  Marco Colombo  <[email protected]>

	* vignettes/rmd/Rcpp-FAQ.Rmd: Fixed typos
	* vignettes/rmd/Rcpp-attributes.Rmd: Idem
	* vignettes/rmd/Rcpp-extending.Rmd: Idem
	* vignettes/rmd/Rcpp-introduction.Rmd: Idem
	* vignettes/rmd/Rcpp-libraries.Rmd: Idem
	* vignettes/rmd/Rcpp-modules.Rmd: Idem
	* vignettes/rmd/Rcpp-package.Rmd: Idem
	* vignettes/rmd/Rcpp-quickref.Rmd: Idem
	* vignettes/rmd/Rcpp-sugar.Rmd: Idem

2024-11-02  Dirk Eddelbuettel  <[email protected]>

	* tests/tinytest.R: Minor code edit, removal of two no longer
	required setters for tinytest

2024-11-01  Dirk Eddelbuettel  <[email protected]>

	* DESCRIPTION (Version, Date): Roll micro version to 1.0.13.5
	* inst/include/Rcpp/config.h (RCPP_DEV_VERSION): Idem

2024-10-31  Kevin Ushey  <[email protected]>

	* inst/include/Rcpp/r/compat.h: Require R (>= 4.5.0) for new APIs

2024-10-26  Dirk Eddelbuettel  <[email protected]>

	* DESCRIPTION (Version, Date): Roll micro version to 1.0.13.4
	* inst/include/Rcpp/config.h (RCPP_DEV_VERSION): Idem

	* .github/workflows/ci.yaml (jobs): Roll checkout action to v4

2024-10-26  Gábor Csárdi  <[email protected]>

	* inst/include/Rcpp/exceptions_impl.h: check for DragonFlyBSD to fix
	compilation

2024-10-07  Iñaki Ucar  <[email protected]>

	* inst/include/Rcpp/platform/compiler.h: Uncomment
	HAS_VARIADIC_TEMPLATES macro definition
	* src/api.cpp: Simplify checks for variadic templates
	* inst/include/Rcpp/DataFrame.h: Idem
	* inst/include/Rcpp/DottedPair.h: Idem
	* inst/include/Rcpp/Function.h: Idem
	* inst/include/Rcpp/InternalFunctionWithStdFunction.h: Idem
	* inst/include/Rcpp/Language.h: Idem
	* inst/include/Rcpp/Pairlist.h: Idem
	* inst/include/Rcpp/grow.h: Idem
	* inst/include/Rcpp/internal/call.h: Idem
	* inst/include/Rcpp/module/class.h: Idem
	* inst/include/Rcpp/traits/index_sequence.h: Idem
	* inst/include/Rcpp/traits/named_object.h: Idem
	* inst/include/Rcpp/vector/Vector.h: Idem
	* inst/include/Rcpp/Module.h: Idem + add missing is_void method
	* inst/tinytest/test_module.R: Add test for void functions and
	methods

2024-10-04  Dirk Eddelbuettel  <[email protected]>

	* DESCRIPTION (Version, Date): Roll micro version to 1.0.13.3
	* inst/include/Rcpp/config.h (RCPP_DEV_VERSION): Idem

2024-09-29  Dirk Eddelbuettel  <[email protected]>

	* inst/include/Rcpp/vector/Vector.h: Remove a cast as R_xlen_t
	is returned now

2024-09-17  Dirk Eddelbuettel  <[email protected]>

	* DESCRIPTION (Version, Date): Roll micro version
	* inst/include/Rcpp/config.h (RCPP_DEV_VERSION): Idem

2024-09-12  Iñaki Ucar  <[email protected]>

	* vignettes/.gitignore: Refinement to ignore more files under rmd/
	* vignettes/pdf/*: Rebuilt with Ghostscript 10.03.1
	* vignettes/*.pdf: Idem

2024-08-31  Dirk Eddelbuettel  <[email protected]>

	* DESCRIPTION (Authors@R): Added

2024-08-28  Dirk Eddelbuettel  <[email protected]>

	* R/Rcpp.package.skeleton.R: Create DESCRIPTION with Auhors@R file
	* inst/tinytest/test_rcpp_package_skeleton.R: Adjust tests

2024-08-20  Dirk Eddelbuettel  <[email protected]>

	* inst/tinytest/test_sugar.R: Skip one more NA related test on arm64
	and macOS as failure is seen at r-universe on arm64

	* .github/workflows/macos.yaml: Add basic r-ci setup but dialed-down
	to macOS only (as Linux is covered via multiple Docker setups)

2024-08-19  Dirk Eddelbuettel  <[email protected]>

	* Contributing.md: Refreshed content

2024-07-30  Dirk Eddelbuettel  <[email protected]>

	* vignettes/rmd/Rcpp-modules.Rmd (are): Add short two-sentence
	illustration following GitHub issue #1322

2024-07-24  Dirk Eddelbuettel  <[email protected]>

	* DESCRIPTION (Version, Date): Roll micro version
	* inst/include/Rcpp/config.h (RCPP_DEV_VERSION): Idem
   2024-11-28 16:12:01 by Jason Bacon | Files touched by this commit (5)
Log message:
devel/R-Rcpp: Unbreak build on Darwin

Move [[noreturn]] tags to correct position
Changes also tested on NetBSD10 and Alma8
   2024-11-07 14:51:37 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
(devel/R-Rcpp) updated 1.0.13 to 1.0.13.1

2024-11-01  Dirk Eddelbuettel  <[email protected]>

        * DESCRIPTION (Date, Version): Release 1.0.13-1

	* Hot-fix release containing two PRs on top of 1.0.13:
	  - #1342: Permit R 4.4.2 builds by correcting to R 4.5.0 for RO PTR
	  - #1327: Switch to Authors@R in DESCRIPTION

2024-10-31  Kevin Ushey  <[email protected]>

	* inst/include/Rcpp/r/compat.h: Require R (>= 4.5.0) for new APIs

2024-08-31  Dirk Eddelbuettel  <[email protected]>

	* DESCRIPTION (Authors@R): Added
   2024-10-19 12:41:44 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
(devel/R-Rcpp) Updated 1.0.12 to 1.0.13

   R CMD Rd2txt  /tmp/devel/R-Rcpp/work/Rcpp/inst/NEWS.Rd | head -40

Changes in Rcpp release version 1.0.13 (2024-07-11):

        * Changes in Rcpp API:

            * Set R_NO_REMAP if not already defined (Dirk in #1296)

            * Add variadic templates to be used instead of generated
              code (Andrew Johnson in #1303)

            * Count variables were switches to 'size_t' to avoid
              warnings about conversion-narrowing (Dirk in #1307)

            * Rcpp now avoids the usage of the (non-API) DATAPTR
              function when accessing the contents of Rcpp Vector
              objects where possible. (Kevin in #1310)

            * Rcpp now emits an R warning on out-of-bounds Vector
              accesses. This may become an error in a future Rcpp
              release. (Kevin in #1310)

            * Switch 'VECTOR_PTR' and 'STRING_PTR' to new API-compliant
              'RO' variants (Kevin in #1317 fixing #1316)

        * Changes in Rcpp Deployment:

            * Small updates to the CI test containers have been made
              (#1304)
   2024-02-03 22:53:13 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
(devel/R-Rcpp) PKGREVISION++