简体   繁体   English

警告消息:'c:/Rtools/mingw_/bin/g++' 未找到

[英]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:当我尝试在 R 中使用 RStan(需要 RTools 才能运行)时,我收到以下警告消息:

Warning message: In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE): 'c:/Rtools/mingw_/bin/g++' not found警告消息:在系统中(粘贴(CXX,ARGS),ignore.stdout = TRUE,ignore.stderr = TRUE):'c:/Rtools/mingw_/bin/g++' 未找到

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.但是,当我检查“c:/Rtools/”文件夹时,我找到了两个“mingw_”文件,分别称为“mingw_32”和“min_gw64”,并且在这两个文件夹中已经有一个“bin/g++”文件。 Why do I get this warning then?为什么我会收到此警告? Is it wrong to have two folders, one 32 and one 64 bits?有两个文件夹,一个32位和一个64位是错误的吗?

delete your old.Rprofile and try again.删除您的 old.Rprofile 并重试。 This helped in my case这对我有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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