On a new Posit Cloud project, installing rstan does not work:
Here is the start of the error messages:
install.packages("rstan")
Installing package into ‘/cloud/lib/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘colorspace’, ‘utf8’, ‘farver’, ‘labeling’, ‘munsell’, ‘RColorBrewer’, ‘viridisLite’, ‘fansi’, ‘magrittr’, ‘pillar’, ‘pkgconfig’, ‘backports’, ‘ps’, ‘cli’, ‘glue’, ‘gtable’, ‘isoband’, ‘lifecycle’, ‘rlang’, ‘scales’, ‘tibble’, ‘vctrs’, ‘withr’, ‘checkmate’, ‘matrixStats’, ‘callr’, ‘crayon’, ‘desc’, ‘prettyunits’, ‘processx’, ‘R6’, ‘rprojroot’, ‘StanHeaders’, ‘ggplot2’, ‘inline’, ‘gridExtra’, ‘Rcpp’, ‘RcppParallel’, ‘loo’, ‘pkgbuild’, ‘RcppEigen’, ‘BH’
trying URL 'http://rspm/default/__linux__/focal/latest/src/contrib/colorspace_2.1-0.tar.gz'
Content type 'application/x-gzip' length 2587962 bytes (2.5 MB)
downloaded 2.5 MB
... (skip lots of stuff)
- DONE (pkgbuild)
- installing binary package ‘tibble’ ...
- DONE (tibble)
- installing binary package ‘ggplot2’ ...
- DONE (ggplot2)
- installing source package ‘rstan’ ...
** package ‘rstan’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
g++ -std=gnu++14 -I"/opt/R/4.2.2/lib/R/include" -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"." -DBOOST_DISABLE_ASSERTS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -DBOOST_NO_AUTO_PTR -D_REENTRANT -DSTAN_THREADS -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/RcppEigen/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/BH/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/StanHeaders/include' -I'/cloud/lib/x86_64-pc-linux-gnu-library/4.2/RcppParallel/include' -I/usr/local/include -fpic -g -O2 -c chains.cpp -o chains.o
In file included from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/RcppEigen/include/Eigen/Core:397,
from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/RcppEigen/include/Eigen/Dense:1,
from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:13,
from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/StanHeaders/include/stan/math/prim/mat/meta/append_return_type.hpp:4,
from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/StanHeaders/include/stan/math/prim/meta.hpp:9,
from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/StanHeaders/include/stan/math/prim/arr/err/check_nonzero_size.hpp:4,
from /cloud/lib/x86_64-pc-linux-gnu-library/4.2/StanHeaders/include/stan/math/prim/mat/fun/mean.hpp:4,
from chains.cpp:19:
/cloud/lib/x86_64-pc-linux-gnu-library/4.2/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:60:39: warning: ignoring attributes on template argument ‘__m128’ {aka ‘__vector(4) float’} [-Wignored-attributes]
60 | template<> struct is_arithmetic<__m128> { enum { value = true }; };
| ^
/cloud/lib/x86_64-pc-linux-gnu-library/4.2/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:61:40: warning: ignoring attributes on template argument ‘__m128i’ {aka ‘__vector(2) long long int’} [-Wignored-attributes]
61 | template<> struct is_arithmetic<__m128i> { enum { value = true }; };
| ^
/cloud/lib/x86_64-pc-linux-gnu-library/4.2/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:62:40: warning: ignoring attributes on template argument ‘__m128d’ {aka ‘__vector(2) double’} [-Wignored-attributes]
62 | template<> struct is_arithmetic<__m128d> { enum { value = true }; };
| ^
/cloud/lib/x86_64-pc-linux-gnu-library/4.2/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:161:43: warning: ignoring attributes on template argument ‘Eigen::internal::Packet4f’ {aka ‘__vector(4) float’} [-Wignored-attributes]
161 | template<> struct unpacket_traits { typedef float type; enum {size=4, alignment=Aligned16}; typedef Packet4f half; };
...
Suggestions?