RcppEnsmallen v0.2.22.1.2 Released - Upstream Armadillo Changes

software-releases
r-package
Author

James Balamuta

Published

September 10, 2025

For upstream changes related to armadillo and its bridge into R via RcppArmadillo, we’ve released a new version of RcppEnsmallen. Specifically, we’ve added -DARMA_USE_CURRENT to the PKG_CXXFLAGS to select the latest Armadillo library that is shipping with RcppArmadillo. You can read albeit about why the define was necessary in Dirk’s release post or update on the RcppArmadillo repo. We highly suggest implementing the C++14 compiler change and replacing arma::is_finite() with std::isfinite() to avoid any potential future issues and to ensure compatibility with future Armadillo releases.

For details on the changes, please see the news entry for the package update below.

RcppEnsmallen news file entry for version v0.2.22.1.2 (2025-09-10)

  • -DARMA_USE_CURRENT added to PKG_CXXFLAGS to use Armadillo 15.0.2 or higher (#69).
  • DESCRIPTION now emphasizes R 4.3.0 or higher for a higher C++ standard by default.

GitHub Changelog