You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
Activity
jennybc commentedon May 6, 2026
devtools::document()is a thin wrapper aroundroxygen2::roxygenise():devtools/R/document.R
Line 13 in 5a10248
What happens when you call
roxygen2::roxygenise()directly?jennybc commentedon May 6, 2026
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.
JoshSchramm94 commentedon May 16, 2026
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.