Skip to content

Rf_rnbeta referenced but not declared in Rcpp/Rmath.h #1420

Description

@SpatLyu

Hi @eddelbuettel,

I’m currently developing an R package that depends on Rcpp, and I recently started getting a compilation error when running devtools::check_win_devel() (checking on R-devel via win-builder). The build fails during package installation with the following error:

Rcpp/Rmath.h:163:100: error: '::Rf_rnbeta' has not been declared; did you mean 'Rf_rbeta'?

You can see the full log here:
👉 https://win-builder.r-project.org/oX4UYBVz3mMC/00install.out

Thanks so much for your continued work on Rcpp, it’s an incredible foundation for R/C++ integration!

Activity

  1. eddelbuettel commented on Dec 11, 2025

    @eddelbuettel
    Member

    That is not an Rcpp issue but an R-devel issue so please direct this to them, see e.g. here.

    Ignore the commit messages. Rcpp is not at fault here: we accessed a function present in these headers for dozens of years, now suddenly pulled and hell breaks loose. We did not cause this.

    PS For what it is worth we are trying to work around it in this branch and this PR but they are not at CRAN yet, and likely will not be for a while.

  2. SpatLyu commented on Dec 11, 2025

    @SpatLyu
    Author

    Understood! Thank you for the prompt reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions