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

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.0.13.1, Package name: R-Rcpp-1.0.13.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)


   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  <edd@debian.org>

        * 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  <kevinushey@gmail.com>

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

2024-08-31  Dirk Eddelbuettel  <edd@debian.org>

	* 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++
   2024-02-03 22:46:08 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
'(devel/R-Rcpp) +USE_CXX_FEATURES+=   c++11

Trying to fix:
https://us-central.manta.mnx.io/pkgsrc/public/reports/upstream-trunk/20240202.2249/R-Rcpp-1.0.12/install.log
using C++ compiler: 'g++ (GCC) 13.2.0'
g++ -std=gnu++17 -I"/opt/pkg/lib/R/include" -DNDEBUG \ 
-I../inst/include/  -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 \ 
-I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include \ 
-I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz \ 
-I/opt/pkg/include/ncurses    -fPIC  -pipe -O2 -msave-args \ 
-fno-aggressive-loop-optimizations -pthread -I/opt/pkg/include \ 
-I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 \ 
-I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 \ 
-I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses  -c api.cpp -o api.o
In file included from \ 
/home/pbulk/build/devel/R-Rcpp/work/.buildlink/lib/R/include/R.h:73,
                 from ../inst/include/Rcpp/r/headers.h:66,
                 from ../inst/include/RcppCommon.h:30,
                 from ../inst/include/Rcpp.h:27,
                 from api.cpp:26:
/home/pbulk/build/devel/R-Rcpp/work/.buildlink/lib/R/include/R_ext/Error.h:41:16: \ 
error: '_Noreturn' does not name a type
   41 | # define NORET _Noreturn
      |                ^~~~~~~~~
   2024-01-20 04:42:09 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(devel/R-Rcpp) Updated 1.0.11 to 1.0.12

2024-01-08  Dirk Eddelbuettel  <edd@debian.org>

        * DESCRIPTION (Date, Version): Release 1.0.12

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

2024-01-01  Dirk Eddelbuettel  <edd@debian.org>

	* vignettes/rmd/Rcpp.bib: Updated to current versions of cited packages
        * inst/bib/Rcpp.bib: Idem

2023-12-27  Dirk Eddelbuettel  <edd@debian.org>

	* src/api.cpp (type2name): Refine OBJSXP return

2023-12-21  Dirk Eddelbuettel  <edd@debian.org>

	* src/api.cpp (type2name): Recognise OBJSXP added in R 4.4.0

2023-11-28  Dirk Eddelbuettel  <edd@debian.org>

	* inst/tinytest/testRcppInterfaceExporter/R/RcppExports.R: Regenerated
	* inst/tinytest/testRcppInterfaceExporter/src/RcppExports.cpp: Idem

2023-11-26  Dirk Eddelbuettel  <edd@debian.org>

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

	* src/attributes.cpp (generateCpp): Add a format string for Rf_error
	call to not run afoul of -Wformat-security

2023-11-24  Dirk Eddelbuettel  <edd@debian.org>

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

	* inst/include/Rcpp/iostream/Rstreambuf.h: Cast streamsize to int in
	two spots
	* inst/include/Rcpp/print.h (warningcall): Add missing '%s' format

2023-11-11  Dirk Eddelbuettel  <edd@debian.org>

	* vignettes/rmd/Rcpp-FAQ.Rmd: Updated and edited
	* vignettes/pdf/Rcpp-FAQ.pdf: Updated
	* vignettes/rmd/Rcpp.bib: Updated

2023-10-28  Dirk Eddelbuettel  <edd@debian.org>

	* vignettes/rmd/Rcpp-FAQ.Rmd: Updated and edited
	* vignettes/pdf/Rcpp-FAQ.pdf: Updated
	* vignettes/rmd/Rcpp.bib: Updated

2023-10-27  Dirk Eddelbuettel  <edd@debian.org>

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

	* R/tools.R: Correct missing Rd macros (spotted by R-devel CMD check)

2023-10-22 Aaron Lun <infinite.monkeys.with.keyboards@gmail.com>

	* inst/include/Rcpp/vector/MatrixColumn.h: Cast integer index
	to R_xlen_t to avoid integer overflow with large matrices.
	* inst/include/Rcpp/vector/MatrixRow.h: Ditto.
	* inst/include/Rcpp/vector/Vector.h: Remove stray cast to int
	that causes overflow when returning the end iterator.

2023-09-30  Dirk Eddelbuettel  <edd@debian.org>

	* vignettes/rmd/Rcpp-introduction.Rmd (Rcpp): Correct caption of
	third figure (cf GitHub issue #1276)
	* vignettes/pdf/Rcpp-introduction.pdf: Rebuilt

2023-08-31  Dirk Eddelbuettel  <edd@debian.org>

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

2023-08-29  Iñaki Ucar  <iucar@fedoraproject.org>

	* R/Attributes.R: Ad-hoc fix for testthat's C entrypoint in
	RcppExports.cpp

2023-08-03  Dirk Eddelbuettel  <edd@debian.org>

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

2023-08-03  Michael Chirico  <chiricom@google.com>

        * src/attributes.cpp: Directly `#include <ostream>` for `std::endl`
        * src/date.cpp: Directly `#include <R_ext/Booelan.h>` for `TRUE` and
	`FALSE`
   2023-07-22 03:46:26 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
(devel/R-Rcpp) Updated 1.0.10 to 1.0.11

2023-07-03  Dirk Eddelbuettel  <edd@debian.org>

        * DESCRIPTION (Date, Version): Release 1.0.11

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

2023-07-02  Dirk Eddelbuettel  <edd@debian.org>

	* README.md: Update usage numbers in Examples section

2023-07-01  Dirk Eddelbuettel  <edd@debian.org>

	* docker/ci-dev/Dockerfile: Make 'rm' more robust as 'rm -f'
	* docker/ci-4.2/Dockerfile: Add new container for R 4.2.3
	* .github/workflows/ci.yaml (jobs): Add entry for R 4.2.3

2023-06-12  Dirk Eddelbuettel  <edd@debian.org>

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

	* README.md: Two URL updates for appease R CMD check

	* DESCRIPTION (Encoding): Somewhat belated addition

2023-04-18  Dirk Eddelbuettel  <edd@debian.org>

	* README.md: Use app.codecov.io as base for codecov link

2023-04-12  Dirk Eddelbuettel  <edd@debian.org>

	* .github/workflows/ci.yaml: Simplified container use

2023-03-27  Dirk Eddelbuettel  <edd@debian.org>

	* .github/workflows/stale.yaml: Roll to v8

2023-03-27  I単aki Ucar  <iucar@fedoraproject.org>

	* R/Attributes.R: Remove command quoting, not needed anymore for system2()
	* inst/tinytest/test_xptr.R: Update copyright

2023-03-26  Dirk Eddelbuettel  <edd@debian.org>

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

	* inst/tinytest/test_stats.R: Revisit change from PR #1252; we now
	use a slightly smaller tolerance to accomodate old and new value

	* inst/tinytest/test_sugar.R: Protect a small number of tests on NA
	propagation from running on arm64/Darwin which requires special care

2023-03-25  I単aki Ucar  <iucar@fedoraproject.org>

	* R/Attributes.R: Switch to system2 to be able to capture stderr on error

2023-03-24  Dirk Eddelbuettel  <edd@debian.org>

	* docker/ci-dev/Dockerfile: During Debian freeze experimental repo is
	renamed which leads to a hickup here so temporarily remove list file

2023-03-24  I単aki Ucar  <iucar@fedoraproject.org>

	* inst/tinytest/test_xptr.R: Skip some tests on Windows

2023-03-19  Dirk Eddelbuettel  <edd@debian.org>

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

	* src/attributes.cpp (RExportsGenerator::writeEnd): Replace a pair of
	apostrophes with backticks in generated .Call() statemente

2023-02-07  Dirk Eddelbuettel  <edd@debian.org>

	* inst/tinytest/test_stats.R: Use more accurate value in R 4.3.0

2023-02-06  Dirk Eddelbuettel  <edd@debian.org>

	* inst/CITATION: Update to new format preferred by r-devel

2023-02-02  Dirk Eddelbuettel  <edd@debian.org>

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

	* inst/include/Rcpp/sugar/functions/sapply.h: Enable compilation
	under C++20 (using clang++ and its C++ library) via invoke_result

2023-01-29  I単aki Ucar  <iucar@fedoraproject.org>

	* inst/tinytest/test_xptr.R: Fix a couple of tests writing to stdout

2023-01-24  Dirk Eddelbuettel  <edd@debian.org>

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

2023-01-24  Lukasz Laniewski-Wollk  <llaniewski@meil.pw.edu.pl>

	* R/RcppLdpath.R: CxxFlags() now quotes only non-standard paths on linux
   2023-06-01 15:21:01 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(devel/R-Rcpp) Updated 1.0.9 to 1.0.10

2023-01-08  Dirk Eddelbuettel  <edd@debian.org>

	* inst/include/Rcpp/String.h: Address clang++-14 conversion warning
	* inst/include/Rcpp/sugar/functions/mean.h: Idem
	* inst/include/Rcpp/vector/Vector.h: Idem
	* src/attributes.cpp: Idem
	* src/date.cpp: Idem

2022-12-29  Dirk Eddelbuettel  <edd@debian.org>

	* .github/workflows/docker.yaml (jobs): Update several actions

2022-12-26  Dirk Eddelbuettel  <edd@debian.org>

	* .github/workflows/stale.yaml (jobs): Update actions/stale@v6

2022-11-14  Dirk Eddelbuettel  <edd@debian.org>

	* .github/workflows/ci.yaml (jobs): Update to actions/checkout@v3

2022-10-27  Dirk Eddelbuettel  <edd@debian.org>

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

2022-10-27  Kevin Ushey  <kevinushey@gmail.com>

	* inst/tinytest/cpp/coerce.cpp: add coerce unit tests
	* inst/tinytest/test_coerce.R: idem

2022-10-25  Dirk Eddelbuettel  <edd@debian.org>

	* inst/include/Rcpp/internal/r_coerce.h (coerce_to_string<RAWSXP >):
	Replace last remaining sprintf with snprintf

2022-10-12  Dirk Eddelbuettel  <edd@debian.org>

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

	* R/Attributes.R (sourceCpp): Protect path to binary from spaces

2022-10-06  Dirk Eddelbuettel  <edd@debian.org>

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

	* inst/tinytest/test_dataframe.R (test.DataFrame.PushZeroLength): Add
	new test
	* inst/tinytest/cpp/DataFrame.cpp (DataFrame_PushOnEmpty): C++
	support for new test

2022-10-04  Dirk Eddelbuettel  <edd@debian.org>

	* inst/include/Rcpp/DataFrame.h (set_type_after_push): Allow zero-row
	data.frame objects to be grown by push_{back,front}()

2022-09-25  Dirk Eddelbuettel  <edd@debian.org>

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

2022-09-23  Kevin Ushey  <kevinushey@gmail.com>

	* R/Module.R: Force 'finalize' method to be materialized

2022-09-20  Dirk Eddelbuettel  <edd@debian.org>

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

	* R/Attributes.R: Support C++20, C++23 and C++2b (for experimental /
	incomplete support) via new plugins

2022-07-27  Dirk Eddelbuettel  <edd@debian.org>

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

2022-07-23  Iñaki Ucar  <iucar@fedoraproject.org>

	* inst/include/Rcpp/r/headers.h: Unwind protection is enabled by default
	unless `RCPP_NO_UNWIND_PROTECT` is defined (`RCPP_USE_UNWIND_PROTECT` is
	not checked anymore and has no effect)
	* inst/include/Rcpp/vector/Vector.h: Switch evaluation to `Rcpp_eval`
	* R/Attributes.R: `[[Rcpp::plugins(unwindProtect)]]` is deprecated
	* inst/tinytest/cpp/stack.cpp: Adapted
	* inst/tinytest/test_exceptions.R: Adapted
	* inst/tinytest/test_interface.R: Adapted
	* inst/tinytest/testRcppInterfaceExporter/src/config.h: Removed

2022-07-10  Dirk Eddelbuettel  <edd@debian.org>

	* docker/ci-4.1/Dockerfile: Add Dockerfile for 4.1 series
	* .github/workflows/ci.yaml: Add 4.1 to CI matrix
	* .github/workflows/docker.yaml: Do not rebuild versioned ones