diff --git a/ChangeLog b/ChangeLog index 152a84e9..568ad218 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,34 @@ +2026-12-05 Dirk Eddelbuettel + + * inst/include/RcppEigen.h: If Rcpp.h has been included already, + display '#pragma message' discouraging this + + * DESCRIPTION (Suggests): Shorten by removing 'inline' and + 'microbenchmark' which are not used directly + +2026-12-04 Dirk Eddelbuettel + + * inst/tinytest/test_fastLm.R: Add variant without intercept + +2026-11-23 Dirk Eddelbuettel + + * DESCRIPTION (Version, Date): CRAN Release 0.5.0.1-1 + * configure.ac: Idem + * configure: Idem + * inst/NEWS.Rd: Idem + + * vignettes/RcppEigen-Introduction.pdf: Re-rendered following + one-char correction in .bib file + + * inst/include/Eigen/src/Core/util/ReenableStupidWarnings.h: + Comment-out two conditional #pragma definitions + +2026-11-22 Dirk Eddelbuettel + + * man/fastLm.Rd: Use https URL + * man/RcppEigen-package.Rd: Idem + * vignettes/RcppEigen-Introduction.pdf: Re-rendered + 2026-10-07 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Roll micro version 0.4.9.9-5 @@ -624,7 +655,7 @@ 2016-04-28 James Joseph Balamuta * inst/include/RcppEigenWrap.h: Added an exporter class for - Map::RowVectorX per http://stackoverflow.com/questions/36920689/ + Map::RowVectorX per https://stackoverflow.com/questions/36920689/ * inst/include/unitTests/runit.RcppEigen.R: Added row exporter unit test. diff --git a/DESCRIPTION b/DESCRIPTION index 7bb2e1ef..a163209c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: RcppEigen Type: Package Title: 'Rcpp' Integration for the 'Eigen' Templated Linear Algebra Library -Version: 0.4.9.9-5 -Date: 2026-10-07 +Version: 0.5.0.1-1.1 +Date: 2026-12-05 Authors@R: c(person("Doug", "Bates", role = "aut", comment = c(ORCID = "0000-0001-8316-9503")), person("Dirk", "Eddelbuettel", role = c("aut", "cre"), email = "edd@debian.org", @@ -32,7 +32,7 @@ LazyLoad: yes Depends: R (>= 3.6.0) LinkingTo: Rcpp Imports: Rcpp (>= 0.11.0), stats, utils -Suggests: Matrix, inline, tinytest, pkgKitten, microbenchmark +Suggests: Matrix, tinytest, pkgKitten URL: https://github.com/RcppCore/RcppEigen, https://dirk.eddelbuettel.com/code/rcpp.eigen.html BugReports: https://github.com/RcppCore/RcppEigen/issues RoxygenNote: 6.0.1 diff --git a/README.md b/README.md index 77f83609..ba3bfc53 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ and solutions of linear systems. Its performance on many algorithms is comparabl some of the best implementations based on `Lapack` and level-3 `BLAS`. RcppEigen provides an interface from R to and from [Eigen](https://libeigen.gitlab.io/) by -using the facilities offered by the [Rcpp](http://dirk.eddelbuettel.com/code/rcpp.html) +using the facilities offered by the [Rcpp](https://dirk.eddelbuettel.com/code/rcpp.html) package for seamless R and C++ integration. ### Examples @@ -62,7 +62,7 @@ post](https://gallery.rcpp.org/articles/eigen-eigenvalues/) for details. ### Status -The package is mature and under acthttps://libeigen.gitlab.io/ive development, following the +The package is mature and under active development, following the [Eigen](https://libeigen.gitlab.io/) release cycle. ### Documentation diff --git a/configure b/configure index 88d72574..5265761f 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.72 for RcppEigen 0.4.9.9-2. +# Generated by GNU Autoconf 2.72 for RcppEigen 0.5.0.1-1. # # Report bugs to . # @@ -603,8 +603,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='RcppEigen' PACKAGE_TARNAME='rcppeigen' -PACKAGE_VERSION='0.4.9.9-2' -PACKAGE_STRING='RcppEigen 0.4.9.9-2' +PACKAGE_VERSION='0.5.0.1-1' +PACKAGE_STRING='RcppEigen 0.5.0.1-1' PACKAGE_BUGREPORT='edd@debian.org' PACKAGE_URL='' @@ -1222,7 +1222,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -'configure' configures RcppEigen 0.4.9.9-2 to adapt to many kinds of systems. +'configure' configures RcppEigen 0.5.0.1-1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1284,7 +1284,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of RcppEigen 0.4.9.9-2:";; + short | recursive ) echo "Configuration of RcppEigen 0.5.0.1-1:";; esac cat <<\_ACEOF @@ -1365,7 +1365,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -RcppEigen configure 0.4.9.9-2 +RcppEigen configure 0.5.0.1-1 generated by GNU Autoconf 2.72 Copyright (C) 2023 Free Software Foundation, Inc. @@ -1481,7 +1481,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by RcppEigen $as_me 0.4.9.9-2, which was +It was created by RcppEigen $as_me 0.5.0.1-1, which was generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -3954,7 +3954,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by RcppEigen $as_me 0.4.9.9-2, which was +This file was extended by RcppEigen $as_me 0.5.0.1-1, which was generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -4009,7 +4009,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -RcppEigen config.status 0.4.9.9-2 +RcppEigen config.status 0.5.0.1-1 configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" diff --git a/configure.ac b/configure.ac index c25072c4..cc980387 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ ## ## 'Rcpp' Integration for the 'Eigen' Templated Linear Algebra Library ## -## Copyright (C) 2025-2926 Dirk Eddelbuettel +## Copyright (C) 2025-2026 Dirk Eddelbuettel ## ## Licensed under GPL-2 or later @@ -15,7 +15,7 @@ AC_PREREQ([2.69]) ## Process this file with autoconf to produce a configure script. -AC_INIT([RcppEigen],[0.4.9.9-2],[edd@debian.org]) +AC_INIT([RcppEigen],[0.5.0.1-1],[edd@debian.org]) ## Set R_HOME, respecting an environment variable if one is set : ${R_HOME=$(R RHOME)} diff --git a/inst/NEWS.Rd b/inst/NEWS.Rd index 3c15d3f1..ff9678b6 100644 --- a/inst/NEWS.Rd +++ b/inst/NEWS.Rd @@ -3,6 +3,38 @@ \newcommand{\ghpr}{\href{https://github.com/RcppCore/RcppEigen/pull/#1}{##1}} \newcommand{\ghit}{\href{https://github.com/RcppCore/RcppEigen/issues/#1}{##1}} +\section{Changes in RcppEigen version 0.5.0.1-1.1 (2026-12-05)}{ + \itemize{ + \item If Rcpp.h was included before RcppEigen.h, a message pragma notes + that this is better avoided; plan to upgrade to error after 12 month or more + } +} + +\section{Changes in RcppEigen version 0.5.0.1-1 (2026-11-23)}{ + \itemize{ + \item This releases catches up to Eigen 5.0.x upstream, and this required a + significant amount of coordination (\ghit{143}) + \item Fifty dependent packages received pull requests or patches (\ghit{151}) + \item Eigen Upstream Changes + \itemize{ + \item Upgrade to Eigen 5.0.0 (Dirk in \ghpr{148} closing \ghit{143}) + \item Upgrade to Eigen 5.0.1 (Dirk in \ghpr{150} closing \ghit{149}) + \item Apply two more commits submitted upstream (Steve Bronder in \ghpr{152}) + } + \item RcppEigen Packaging Changes + \itemize{ + \item Multiple updates to continunous integration, coverage support and README.md + \item Rewritten (and generally enabled) OpenMP support (Dirk in \ghpr{145} + addressing \ghit{144}) + \item Added explicit checks for OpenMP viability on macOS (Dirk in \ghpr{146}) + \item Additional fixes for \pkg{stan} and \pkg{StanHeaders} (Dirk in + \ghpr{153}) + \item Switch to \code{Rcpp::asis} vignette builder along with minor + vignette updates + } + } +} + \section{Changes in RcppEigen version 0.3.4.0.2 (2024-08-23)}{ \itemize{ \item Correct two typos in the ORCID tag diff --git a/inst/include/Eigen/src/Core/util/ReenableStupidWarnings.h b/inst/include/Eigen/src/Core/util/ReenableStupidWarnings.h index 0af5a430..5219f2d2 100644 --- a/inst/include/Eigen/src/Core/util/ReenableStupidWarnings.h +++ b/inst/include/Eigen/src/Core/util/ReenableStupidWarnings.h @@ -16,9 +16,9 @@ #elif defined __INTEL_COMPILER #pragma warning pop #elif defined __clang__ -#pragma clang diagnostic pop +// #pragma clang diagnostic pop #elif defined __GNUC__ && !defined(__FUJITSU) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) -#pragma GCC diagnostic pop +// #pragma GCC diagnostic pop #endif #if defined __NVCC__ diff --git a/inst/include/RcppEigen.h b/inst/include/RcppEigen.h index 9d049104..93db4cc1 100644 --- a/inst/include/RcppEigen.h +++ b/inst/include/RcppEigen.h @@ -1,8 +1,7 @@ -// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*- -// + // RcppEigen.h: Rcpp/Eigen glue // -// Copyright (C) 2011 Douglas Bates, Dirk Eddelbuettel and Romain Francois +// Copyright (C) 2011-2026 Douglas Bates, Dirk Eddelbuettel and Romain Francois // // This file is part of RcppEigen. // @@ -22,6 +21,13 @@ #ifndef RcppEigen__RcppEigen__h #define RcppEigen__RcppEigen__h +// Cf issue #142, and possible escalation to error in a release from now +#if defined(Rcpp_hpp) && !defined(COMPILING_RCPPEIGEN) + // not making this an error yet + //#error "The file 'Rcpp.h' should not be included. Please correct to include only 'RcppEigen.h'." + #pragma message "The file 'Rcpp.h' should not be included. Please correct to include only 'RcppEigen.h'. See issue #142 for details." +#endif + #include #include #include diff --git a/inst/tinytest/test_fastLm.R b/inst/tinytest/test_fastLm.R index fafd8691..6142cda1 100644 --- a/inst/tinytest/test_fastLm.R +++ b/inst/tinytest/test_fastLm.R @@ -1,6 +1,6 @@ #!/usr/bin/r -t # -# Copyright (C) 2011 - 2021 Douglas Bates, Dirk Eddelbuettel and Romain Francois +# Copyright (C) 2011-2026 Douglas Bates, Dirk Eddelbuettel and Romain Francois # # This file is part of RcppEigen # @@ -75,3 +75,20 @@ flmsum <- summary(flm) fitsum <- summary(fit) expect_equal(flmsum$coef, fitsum$coef) expect_equal(length(flmsum), 12) + +## for good measure, same without intercept +flm <- fastLm(log(Volume) ~ log(Girth) - 1, data=trees) +fit <- lm(log(Volume) ~ log(Girth) - 1, data=trees) +expect_equal(flm$coefficients, coef(fit), info="fastLm.formula.coef") +expect_equal(as.numeric(flm$se), as.numeric(coef(summary(fit))[,2]), info="fastLm.formula.stderr") +expect_stdout(print(flm)) +expect_stdout(print(summary(flm))) +vec <- predict(flm, newdata=data.frame(Girth=c(1,2,3), Volume=c(2,3,4))) +expect_equal(class(vec), "numeric") +expect_equal(length(vec), 3L) +vec <- predict(flm, newdata=NULL) +expect_equal(vec, fitted(flm)) +flmsum <- summary(flm) +fitsum <- summary(fit) +expect_equal(flmsum$coef, fitsum$coef) +expect_equal(length(flmsum), 12) diff --git a/man/RcppEigen-package.Rd b/man/RcppEigen-package.Rd index 8ca648cf..c8fef3a7 100644 --- a/man/RcppEigen-package.Rd +++ b/man/RcppEigen-package.Rd @@ -38,6 +38,6 @@ Rcpp/Eigen bridge Douglas Bates and Dirk Eddelbuettel (2013). Fast and Elegant Numerical Linear Algebra Using the \pkg{RcppEigen} Package. \emph{Journal of Statistical Software}, \bold{52(5)}, 1-24. - URL http://www.jstatsoft.org/v52/i05/. + URL https://www.jstatsoft.org/v52/i05/. } \keyword{ package } diff --git a/man/fastLm.Rd b/man/fastLm.Rd index 4ae4441c..b7c3bb05 100644 --- a/man/fastLm.Rd +++ b/man/fastLm.Rd @@ -83,7 +83,7 @@ fastLm(X, \dots) Douglas Bates and Dirk Eddelbuettel (2013). Fast and Elegant Numerical Linear Algebra Using the \pkg{RcppEigen} Package. \emph{Journal of Statistical Software}, \bold{52(5)}, 1-24. - URL http://www.jstatsoft.org/v52/i05/. + URL https://www.jstatsoft.org/v52/i05/. } \author{ Eigen is described at \url{https://libeigen.gitlab.io/}. diff --git a/patches/eigen-5.0.1.additional.diff b/patches/eigen-5.0.1.additional.diff new file mode 100644 index 00000000..6f4378f5 --- /dev/null +++ b/patches/eigen-5.0.1.additional.diff @@ -0,0 +1,15 @@ +index 0af5a43..5219f2d 100644 +--- i/inst/include/Eigen/src/Core/util/ReenableStupidWarnings.h ++++ w/inst/include/Eigen/src/Core/util/ReenableStupidWarnings.h +@@ -16,7 +16,7 @@ + #elif defined __INTEL_COMPILER + #pragma warning pop + #elif defined __clang__ +-#pragma clang diagnostic pop ++// #pragma clang diagnostic pop + #elif defined __GNUC__ && !defined(__FUJITSU) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) +-#pragma GCC diagnostic pop ++// #pragma GCC diagnostic pop + #endif + + #if defined __NVCC__ diff --git a/vignettes/RcppEigen-Introduction.pdf b/vignettes/RcppEigen-Introduction.pdf index 1fa8017e..ad2478d7 100644 Binary files a/vignettes/RcppEigen-Introduction.pdf and b/vignettes/RcppEigen-Introduction.pdf differ