简体   繁体   中英

Warning message: 'c:/Rtools/mingw_/bin/g++' not found

When I try to use RStan (which needs RTools to run) in R, I get the following warning message:

Warning message: In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE): 'c:/Rtools/mingw_/bin/g++' not found

But, when I check in the 'c:/Rtools/' folder, I find two 'mingw_' files, called 'mingw_32' and 'min_gw64', and in both folders there is already a 'bin/g++' file. Why do I get this warning then? Is it wrong to have two folders, one 32 and one 64 bits?

delete your old.Rprofile and try again. This helped in my case

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM