Here is how I solved this problem on my Windows 7 computer:
- Install
Rtools
from HERE. - Locate the folder that
Rtools
is installed. In my case it is atC:\Rtools
. - Add
C:\Rtools\bin
path to the system path.
Adding C:\Rtools\bin
to the system path:
- Go to
Control Panel >> System and Security >> System
- Go to
Advanced System Settings
- Open
Advanced
tab - Click
Environmental Variables...
button - Select
Path
variable and clickEdit
button - If there is nothing as a “Variable Value” you can simply write
C:\Rtools\bin
. If there is already a value, then add;C:\Rtools\bin
to the end of it. - Click OK, OK…
- Restart R, it should work.
I hope this helps. I found the solution HERE.