I was trying to run RStan but was unsuccessful in doing so. Upon going through various articles available online, I deleted certain lines in the Makevars.win file. After this I am getting this error:
Error in compileCode(f, code, language = language, verbose = verbose) :
/bin/sh: line 1: C:\rtools42\mingw64\bin: Is a directorymake: *** [C:/R/R-42~1.0/etc/x64/Makeconf:259: file3c447b20663a.o] Error 126
In addition: Warning message:
In readLines(file.path(makevar_files)) :
incomplete final line found on ‘C:/Users/Sanchit Kanda/Documents/.R/Makevars.win’
Error in sink(type = “output”) : invalid connection
Please help me solve this error. I don’t remember what I have deleted, neither can I undo it. So please provide me the content of the Makevars file if possible. Currently my makevars file looks like:
CXX14 = “C:\rtools42\mingw64\bin”