Hi Andrew,
Thank you for all the advice on how to fix our errors. I particularly start with the following error by running my model:
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: file581c41a54d87.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
I followed all the steps you are referring to above:
Sys.getenv(“BINPREF”)
[1] “”
Sys.getenv(“PATH”)
[1] “C:\Program Files\R\R-4.0.3\bin\x64;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY;C:\Users\elena\AppData\Local\Microsoft\WindowsApps”
readLines(“~/.R/Makevars.win”)
Error in file(con, “r”) : cannot open the connection
In addition: Warning message:
In file(con, “r”) :
cannot open file ‘C:/Users/elena/Documents/.R/Makevars.win’: No such file or directory
readLines(“~/.Renviron”)
Error in file(con, “r”) : cannot open the connection
In addition: Warning message:
In file(con, “r”) :
cannot open file ‘C:/Users/elena/Documents/.Renviron’: No such file or directory
readLines(“~/.Rprofile”)
Error in file(con, “r”) : cannot open the connection
In addition: Warning message:
In file(con, “r”) :
cannot open file ‘C:/Users/elena/Documents/.Rprofile’: No such file or directory
I also created the file Makevars.win as it was not present. Nothing seems to work though.
Any help would be greatly appreciated.
Thanks a lot in advance