Skip to content

compiling issues with devtools::document() #2695

Closed

Description

@JoshSchramm94

I am currently building an R package relying on rstan (you can find it here). I cloned it with a new device and wanted to work on it from a new machine. For some reason, when I now call devtools::document() it starts to recompile all stan models (what it usually does not do) and aborts the documentation process. Also when I use the install function under the build tab it also aborts the installation process. I get warnings such as C:/Users/AppData/Local/R/win-library/4.5/BH/include/boost/math/quadrature/detail/exp_sinh_detail.hpp:498:7: warning: non-standard suffix on floating constant [-Wpedantic] or C:/Users/AppData/Local/R/win-library/4.5/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:302:7: required from ‘class Eigen::DenseCoeffsBase<Eigen::Matrix<double, 4, 1>, 1>. I have no clue why and I can also find no references discussing this issue. I am happy for any help regarding this issue.

Activity

  1. jennybc commented on May 6, 2026

    @jennybc
    Member

    devtools::document() is a thin wrapper around roxygen2::roxygenise():

    document <- function(pkg = ".", roclets = NULL, quiet = FALSE) {

    What happens when you call roxygen2::roxygenise() directly?

  2. jennybc commented on May 6, 2026

    @jennybc
    Member

    I'd also recommend that you do one complete cycle of building the package with pure base R tooling. Given that you're on a new machine, I think that's going to give lots of information to distinguish between gaps or changes in the setup that affect any package development for you vs. issues that are specific to devtools and adjacent packages.

  3. JoshSchramm94 commented on May 16, 2026

    @JoshSchramm94
    Author

    Hi Jenny, thanks a lot for your help. I think it was due to some development compiling flags. When I set these to false, devtools::document() was working without issues. So thanks for your advice.

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