Start with a short summary of your inquiry.
I recently updated R 3.6.3 to R 4.0.3. I updated all packages including rstan. When I tried to fit a model with stan() function, error messages appear. R tools 4.0 was also automatically updated.
You can see the error message, below.
Error in compileCode(f, code, language = language, verbose = verbose) : sh: c:/rtools40/mingw64/bin/g++: No such file or directorymake: *** [C:/PROGRA~1/R/R-40~1.3/etc/x64/Makeconf:229: file131481e681912.o] Error 127 In addition: Warning message: In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) : '-E' not found Error in sink(type = "output") : invalid connection
My session info is below.
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
Matrix products: default
 LC_COLLATE=English_United States.1252
 LC_CTYPE=English_United States.1252
 LC_MONETARY=English_United States.1252
 LC_TIME=English_United States.1252
system code page: 949
How may I solve this error? Could you help me to solve this?
Thank you for your time and consideration!