Windows上的C代码的R内联编译失败 [英] R inline compilation of C code fails on Windows
本文介绍了Windows上的C代码的R内联编译失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Windows XP Pro RGui中,无法编译内联C代码.得到错误: 'sh'不被识别为内部或外部命令
Within the Windows XP Pro RGui, can't compile inline C code. Get error: 'sh' is not recognized as an internal or external command
很显然存在配置错误,但是在R文档中或通过谷歌搜索找不到解决方法.必须是一个简单的解决方案!
Clearly there is a configuration error, but can't find a way to resolve it either in R documentation or via googling. Must be a simple solution!
相同的R代码在Linux上也能正常工作:内联C可以正确编译并运行.
The same R code works fine on linux: the inline C compiles and runs correctly.
推荐答案
You need the RTools collection as described in detail in Appendix D of the R Installation and Administration manual.
这篇关于Windows上的C代码的R内联编译失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文