Skip to content

rstanlm crashes when using roxygen::roxygenize() #151

@JoshSchramm94

Description

@JoshSchramm94

I am a building a package where I am relying on rstan. Somehow, this is not working on my device. I restarted going through the step by step guide and created the rstanlm package. When I am using roxygen::roxygenize() I get a lot messages regarding Rcpp, BH or RcppEigen: 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 this is coming up. I set up rstan as described on the getting started page. I am using R version 4.5.3 and RTools 45. When running the rstan test model example(stan_model, package = "rstan", run.dontrun = TRUE), everything works fine. Further, I can also compile all models in my package or the lm.stan file, when using stan_model(). Thus, I am unsure about what is working wrong in this case.

Happy for any help.

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