Update of five packages failed on my Windows 10 box today, all apparently dependent on Rstan or Rstanarm. (ctsem, MESS, raster, RcppArmadillo, and rstanarm) I thought that this might be an Rtools 4.0 issue, but Rtools 4.0 installed and works for other packages. BUT, I had to install Rtools 4.0 in a non-standard location, since I don't have admin priviliges on this UIowa Research Desktop. The updates failed on both RStudio and a naked R command window.
Running Windows 10 up-to-date, R 4.0.2, RStudio 1.3.1056. Both 32 and 64 bit R are installed on all the desktops, so the update starts (and aborts) with arch i386. Rtools 2.0 installed for both 32 and 64 bit systems.
Update of rstanarm failed with the following message. Any help gratefully received.
> install.packages('rstanarm')
Installing package into ‘C:/$Recycle.Bin/S-1-5-21-1343024091-1383384898-725345543-277224/$RNTH3XX/Documents/Home/R/win-library/4.0’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
There is a binary version available but the source version is later:
binary source needs_compilation
rstanarm 2.19.3 2.21.1 TRUE
installing the source package ‘rstanarm’
trying URL 'https://mirror.las.iastate.edu/CRAN/src/contrib/rstanarm_2.21.1.tar.gz'
Content type 'application/x-gzip' length 3548723 bytes (3.4 MB)
downloaded 3.4 MB
* installing *source* package 'rstanarm' ...
** package 'rstanarm' successfully unpacked and MD5 sums checked
** using staged installation
** libs
*** arch - i386
"C:/PROGRA~1/R/R-40~1.2/bin/i386/Rscript" -e "source(file.path('..', 'tools', 'make_cc.R')); make_cc(commandArgs(TRUE))" stan_files/continuous.stan
Wrote C++ file "stan_files/continuous.cc"
"c:/Users/hunsickerl/Documents/R/Rtools40/mingw32/bin/"g++ -m32 -std=c++1y -std=gnu++14 -I"C:/PROGRA~1/R/R-40~1.2/include" -DNDEBUG -I"../inst/include" -I"C:/$Recycle.Bin/S-1-5-21-1343024091-1383384898-725345543-277224/$RNTH3XX/Documents/Home/R/win-library/4.0/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I'C:/ecycle.Bin/S-1-5-21-1343024091-1383384898-725345543-277224/NTH3XX/Documents/Home/R/win-library/4.0/StanHeaders/include' -I'C:/ecycle.Bin/S-1-5-21-1343024091-1383384898-725345543-277224/NTH3XX/Documents/Home/R/win-library/4.0/rstan/include' -I'C:/ecycle.Bin/S-1-5-21-1343024091-1383384898-725345543-277224/NTH3XX/Documents/Home/R/win-library/4.0/BH/include' -I'C:/ecycle.Bin/S-1-5-21-1343024091-1383384898-725345543-277224/NTH3XX/Documents/Home/R/win-library/4.0/Rcpp/include' -I'C:/ecycle.Bin/S-1-5-21-1343024091-1383384898-725345543-277224/NTH3XX/Documents/Home/R/win-library/4.0/RcppEigen/include' -I'C:/ecycle.Bin/S-1-5-21-1343024091-1383384898-725345543-277224/NTH3XX/Documents/Home/R/win-library/4.0/RcppParallel/include' `"C:/PROGRA~1/R/R-40~1.2/bin/i386/Rscript" -e "RcppParallel::CxxFlags()"` `"C:/PROGRA~1/R/R-40~1.2/bin/i386/Rscript" -e "StanHeaders:::CxxFlags()"` -O3 -Wno-unused-variable -Wno-unused-function -c stan_files/continuous.cc -o stan_files/continuous.o
stan_files/continuous.cc:1:10: fatal error: Rcpp.h: No such file or directory
#include <Rcpp.h>
^~~~~~~~
compilation terminated.
make: *** [C:/PROGRA~1/R/R-40~1.2/etc/i386/Makeconf:227: stan_files/continuous.o] Error 1
rm stan_files/continuous.cc
ERROR: compilation failed for package 'rstanarm'
* removing 'C:/$Recycle.Bin/S-1-5-21-1343024091-1383384898-725345543-277224/$RNTH3XX/Documents/Home/R/win-library/4.0/rstanarm'
* restoring previous 'C:/$Recycle.Bin/S-1-5-21-1343024091-1383384898-725345543-277224/$RNTH3XX/Documents/Home/R/win-library/4.0/rstanarm'
The downloaded source packages are in
‘C:\$Recycle.Bin\S-1-5-21-1343024091-1383384898-725345543-277224\$RNTH3XX\AppData\Local\Temp\35\Rtmpo9FcMC\downloaded_packages’
Warning message:
In install.packages("rstanarm") :
installation of package ‘rstanarm’ had non-zero exit status