The rstanarm package on CRAN won’t build and I can’t upload a rstanarm that does build because it appears to crash on 32bit Windows when quitting R. You can do
It applies to all source installs of rstanarm from CRAN irrespective of operating system. Installation of binary packages or source installation from github should be fine.
sadly didn’t work for me - a novice on stan, using linux mint 19.3 Tricia with R 3.6.3, gives error:
compilation terminated.
/usr/lib/R/etc/Makeconf:168: recipe for target ‘expr.o’ failed
make: *** [expr.o] Error 1
ERROR: compilation failed for package ‘lazyeval’
removing ‘/home/greg/R/x86_64-pc-linux-gnu-library/3.6/lazyeval’
Error: Failed to install ‘rstanarm’ from GitHub:
(converted from warning) installation of package ‘lazyeval’ had non-zero exit status
the problem highlighted earlier on was:
from <command-line>:0:
/home/greg/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/Eigen/src/Core/util/Macros.h:613:1: error: unknown type name ‘namespace’
namespace Eigen {
^~~~~~~~~
/home/greg/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/Eigen/src/Core/util/Macros.h:613:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
namespace Eigen {
^
In file included from /home/greg/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/Eigen/Dense:1:0,
from /home/greg/R/x86_64-pc-linux-gnu-library/3.6/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:13,
from :0:
/home/greg/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/Eigen/Core:96:10: fatal error: complex: No such file or directory #include
^~~~~~~~~
compilation terminated.
thanks, that solved the first problem. Then trying within R to
install.packages(“rstanarm”) failed, so I went back to the remotes
approach. This threw a series of errors, each of which were resolved by
the suggestions to install libcurl4-openssl-dev, and then libssl-dev, and
then libv8-dev
After that, it took about 15 mins to install rstanarm. We’ll see if it works!