问题
Within the Windows XP Pro RGui, can't compile inline C code. Get error: 'sh' is not recognized as an internal or external command
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!
The same R code works fine on linux: the inline C compiles and runs correctly.
回答1:
You need the RTools collection as described in detail in Appendix D of the R Installation and Administration manual.
来源:https://stackoverflow.com/questions/3442305/r-inline-compilation-of-c-code-fails-on-windows