I’m trying to install an R package on my windows 10 PC that includes Rstan. I did not build the package myself (it was built on mac). Though the package installs fine on mac:
devtools::install_github(“ColumbiaCDS/DEEPEst”,force = TRUE)
I get this output on PC:
C:/RBuildTools/3.5/mingw_32/bin/g++ -m32g -std=c++1y -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -I"…/inst/include" -I"C:/Users/np2730/Documents/R/win-library/3.6/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I"C:/Users/np2730/Documents/R/win-library/3.6/BH/include" -I"C:/Users/np2730/Documents/R/win-library/3.6/Rcpp/include" -I"C:/Users/np2730/Documents/R/win-library/3.6/RcppEigen/include" -I"C:/Users/np2730/Documents/R/win-library/3.6/rstan/include" -I"C:/Users/np2730/Documents/R/win-library/3.6/StanHeaders/include" -O3 -Wno-unused-variable -Wno-unused-function -c RcppExports.cpp -o RcppExports.o
g++.exe: error: unrecognized command line option ‘-m32g’
make: *** [C:/PROGRA~1/R/R-36~1.1/etc/i386/Makeconf:215: RcppExports.o] Error 1
ERROR: compilation failed for package ‘DEEPEst’
I believe this issue has something to do with the compiler being used: on Mac, where the installation works fine, it mentions clang as the compiler instead of g++. I know practically nothing about C, so any insight anyone has would be really appreciated. I’m happy to provide any other information that I might have left out. I’m using R version 3.6.1 and rstan version 2.19.2.