Thu, 03 Dec 2026

RcppEigen 0.5.0.1-1 on CRAN: It takes a village!

A new major release of RcppEigen just arrived on CRAN, has been built for r2u, should be building on r-universe soon, and has also been uploaded to Debian as usual. Eigen is a widely-used C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms. RcppEigen is also relied upon by 592 other CRAN packages, and has been downloaded 62 million times just off the mirrors of CRAN keeping logs for counting.

This release is the first since August 2024, and represents a lot of work by a lot of people. Upstream released a new ‘Eigen 5.0.0’ in September of last year (and altered their versioning scheme: 5.0.0 corresponds to 3.5.0.0 under the old scheme as the leading ‘3’ is now ‘silent’ and effectively dropped). By November of last year, Johan Larson opened issue #143 asking for an update; Eigen also updated to 5.0.1 around that time. Over the next few months, that issue saw over 100 messages as Andrew Johnson, Steve Bronder, Ben Goodrich and I chewed through required changes for RcppEigen and stan-related packages. Eventually this got nailed down to two patches that should also be in the next Eigen release 5.1.0 (which is actually “due soon”).

By the summer I was able to start assessing reverse depdendencies. Initial test were really bad with around 200 failures. Changes to StanHeaders reduced it considerably but by September it was down to almost seventy packages. I opened issue #151 to track this. It grew to fifty PRs or patches – with three existing ones by Andrew and Michael Chirico leaving me to create fourty-seven remaining ones. This was the first time I appreciated the aid agentic coding can offer …

After two more months and two more waves of email prodding maintainers this list was down to about nine packages failing for lack of updates. By now I had also emailed CRAN, and one always-helpful CRAN maintainer made a NMU of StanHeaders. I uploaded on November 23, the date shown in DESCRIPTION and NEWS.Rd. It took another NMU to gRbase and some more back and forth with the maintainer of OpenMx (a package I had contacted relatively late in the process) but here we are now: Kurt Hornik released a ‘wave’ of gRbase, OpenMx and RcppEigen a few hours ago.

So with that a really really big thank you! to the dozens of maintainers merging my PRs and incorporating my patches, and releasing to CRAN! We would not be here today without that help!

Other noteworthy sets of changes that happens were my rewriting of the package configuration at build ensuring OpenMP is used on both Linux and, when possible (as at CRAN) also on macOS (leaning on the fine example data.table provides), as well as a switch to ‘as is’ premade vignettes. The complete NEWS file entry follows.

Changes in RcppEigen version 0.5.0.1-1 (2026-11-23)

  • This releases catches up to Eigen 5.0.x upstream, and this required a significant amount of coordination (#143)

  • Fifty dependent packages received pull requests or patches (#151)

  • Eigen Upstream Changes

    • Upgrade to Eigen 5.0.0 (Dirk in #148 closing #143)

    • Upgrade to Eigen 5.0.1 (Dirk in #150 closing #149)

    • Apply two more commits submitted upstream (Steve Bronder in #152)

  • RcppEigen Packaging Changes

    • Multiple updates to continunous integration, coverage support and README.md

    • Rewritten (and generally enabled) OpenMP support (Dirk in #145 addressing #144)

    • Added explicit checks for OpenMP viability on macOS (Dirk in #146)

    • Additional fixes for stan and StanHeaders (Dirk in #153)

    • Switch to Rcpp::asis vignette builder along with minor vignette updates

Courtesy of CRANberries, there is also a diffstat report for the most recent release.

This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. If you like this or other open-source work I do, you can sponsor me at GitHub.

/code/rcpp | permanent link