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

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


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


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

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

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

	* 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  <simon.guest@tesujimath.org>

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

2024-11-03  Marco Colombo  <mar.colombo13@gmail.com>

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

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

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

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

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

2024-10-26  Dirk Eddelbuettel  <edd@debian.org>

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

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

2024-10-07  Iñaki Ucar  <iucar@fedoraproject.org>

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

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

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

2024-09-17  Dirk Eddelbuettel  <edd@debian.org>

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

2024-09-12  Iñaki Ucar  <iucar@fedoraproject.org>

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

	* DESCRIPTION (Authors@R): Added

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

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

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

	* Contributing.md: Refreshed content

2024-07-30  Dirk Eddelbuettel  <edd@debian.org>

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

2024-07-24  Dirk Eddelbuettel  <edd@debian.org>

	* 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  <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