Closed nadyawilliams closed 3 years ago
Thanks for flagging this. I need to look further but it does not seem possible (at the moment) to compile packages that contain Stan code from source with rstan 2.26.1. That is, even once fixing the name conflict with the epidemia defined function 'reverse' I am still seeing issues.
The problem should resolve if you revert to the latest CRAN version of rstan, which is 2.21.2.
Thanks for looking into this. Still error after downgrading to rstan 2.21.2:
ERROR: package installation failed
Error: Failed to install 'epidemia' from GitHub:
System command 'R' failed, exit status: 1, stdout + stderr (last 10 lines):
E> /opt/apps/R/4.0.4/lib64/R/library/RcppEigen/include/Eigen/src/Core/ProductEvaluators.h:35:90: required from 'Eigen::internal::evaluator<Eigen::Product<Lhs, Rhs, Option> >::evaluator(const XprType&) [with Lhs = Eigen::Product<Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op
The command line compilation with "R CMD INSTALL ..." on a tar ball created from git checkout fails with the same error.
Sorry, you will probably also have to downgrade StanHeaders to the latest CRAN version. (I'm assuming you still have the development version of StanHeaders - i.e. 2.26)
Yes, this is correct. I had to downgrade StanHeaders and after that was able to compile. Thank you!
Installing per instructions as devtools::install_github("ImperialCollegeLondon/epidemia")
Throws an error ** using staged installation Error in rstan::stanc(file_name, allow_undefined = TRUE, obfuscate_model_name = FALSE) : 0 Semantic error in 'string', line 3, column 7 to column 14: Identifier 'reverse' clashes with Stan Math library function. Calls: -> sapply -> lapply -> FUN ->
Execution halted
ERROR: configuration failed for package ‘epidemia’
R version 4.0.4 rstan version 2.26.1 The rest of R modules versions (about 400 total) are as of what was in CRAN as of Mar 17 a week ago.
I don't believe there is an issue with my system. Following rstan install did a check run of rstan examples and pass them fine.