Warning messages:
1: In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
‘C:/rtools40/usr/mingw_/bin/g++’ not found
2: In readLines(file.path(makevar_files)) :
incomplete final line found on ‘C:/Users/nmura~/Documents/.R/Makevars.win’
3: In readLines(old_path) :
incomplete final line found on ‘C:/Users/nmura~/Documents/.R/Makevars.win’
Welcome to the Stan forums! If the model ran successfully then I think all these warnings can safely be ignored.
This one should go away when we release the next version RStan but I don’t know if you can avoid it before then (it shouldn’t harm anything though).
For some reason R aggressively warns about incomplete final lines in files even though it doesn’t seem to affect anything. Based on the message, I think you can get rid of the warning by going into the file at
C:/Users/nmura~/Documents/.R/Makevars.win
and just adding an extra blank line at the end of it.