{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreie33hf5ltbbz4eq6vguujn6mjpi473i73r3hcaiq3jykqlpvi6pl4",
"uri": "at://did:plc:46ti67tc37qcmwp2vaynk6fq/app.bsky.feed.post/3mk2dkzjwmts2"
},
"path": "/blog/2026/04/21#rcpparmadillo_15.2.6-1",
"publishedAt": "2026-04-22T01:23:43.837Z",
"site": "http://dirk.eddelbuettel.com",
"tags": [
"Armadillo",
"RcppArmadillo",
"R",
"CRAN",
"CSDA paper",
"preprint\n/ vignette",
"Debian",
"r2u",
"504",
"503",
"506",
"CRANberries",
"diffstat\nreport",
"RcppArmadillo\npage",
"rcpp-devel\nmailing list",
"Rcpp R-Forge",
"Dirk\nEddelbuettel",
"Thinking inside the box",
"sponsor me at\nGitHub",
"Tour\nde Shore 2026 ride in support of the Maywood Fine Arts Center"
],
"textContent": "Armadillo is a powerful and expressive C++ template library for linear algebra and scientific computing. It aims towards a good balance between speed and ease of use, has a syntax deliberately close to Matlab, and is useful for algorithm development directly in C++, or quick conversion of research code into production environments. RcppArmadillo integrates this library with the R environment and language–and is widely used by (currently) 1263 other packages on CRAN, downloaded 45.7 million times (per the partial logs from the cloud mirrors of CRAN), and the CSDA paper (preprint\n/ vignette) by Conrad and myself has been cited 683 times according to Google Scholar.\n\nThis versions updates to the 15.2.5 and 15.2.6 upstream Armadillo releases from, respectively, two and five days ago. The package has already been updated for Debian, and built for r2u. When we ran the reverse-dependency check for 15.2.5 at the end of last week, one package failed. I got in touch with the authors, filed an issue, poked some more, isolated the one line that caused an example to fail … and right then 15.2.6 came out fixing just that. It was after all an upstream issue. We used to ran these checks before Conrad made a release, he now skips this and hence needed a quick follow-up release. It can happen.\n\nThe other big change is that this R package release phases out the ‘dual support’ for both C++14 or newer (as in current Armadillo) along with a C++11 fallback for more slowly updating packages. I am happy to say that after over eight months of this managed transition (during which CRAN expulsed some laggard packages that were not moving in from C++11) we are now at all packages using C++14 or newer which is nice. And I will take this as an opportunity to stress that one can in fact manage a disruptive API change this way as we just demonstrated. Sadly, R Core does not seem to have gotten that message and rollout of this package was also still a little delayed because of the commotion created by the last minute API changes preceding the R 4.6.0 release later this week.\n\nSmaller changes in the package are a switch in pdf vignette production to the `Rcpp::asis()` driver, and a higher-precision computation in `rmultinom()` (matching a change made in R-devel during last week in its use of Kahan summation). All detailed changes since the last CRAN release follow.\n\n> #### Changes in RcppArmadillo version 15.2.6-1 (2026-04-20)\n>\n> * Upgraded to Armadillo release 15.2.6 (Medium Roast Deluxe)\n>\n> * Ensure internally computed tolerances are not `NaN`\n> * The `rmultinom` deploys 'Kahan summation' as R-devel does now.\n>\n>\n\n>\n> #### Changes in RcppArmadillo version 15.2.5-1 [github-only] (2026-04-18)\n>\n> * Upgraded to Armadillo release 15.2.5 (Medium Roast Deluxe)\n>\n> * Fix for handling NaN elements in `.is_zero()`\n>\n> * Fix for handling NaN in tolerance and conformance checks\n>\n> * Faster handling of diagonal views and submatrices with one row>\n>\n>\n\n\n> * Sunset the C++11 fallback of including Armadillo 14.6.3 (#504 closing #503)\n>\n> * The vignettes have refreshed bibliographies, and are now built using the `Rcpp::asis` vignette builder (#506)\n>\n> * One `rmultinom` test is skipped under R-devel which has switched to a higher precisions calc\n>\n>\n\n\nCourtesy of my CRANberries, there is a diffstat\nreport relative to previous release. More detailed information is on the RcppArmadillo\npage. Questions, comments etc should go to the rcpp-devel\nmailing list off the Rcpp R-Forge page.\n\nThis post by Dirk\nEddelbuettel originated on his Thinking inside the box blog. If you like this or other open-source work I do, you can sponsor me at\nGitHub. You can also sponsor my Tour\nde Shore 2026 ride in support of the Maywood Fine Arts Center.",
"title": "Dirk Eddelbuettel: RcppArmadillo 15.2.6-1 on CRAN: Several Updates",
"updatedAt": "2026-04-21T23:20:00.000Z"
}