更新:
我写了一篇关于在Windows上安装Rtools的简短演练指南.
原版的:
我试图在Windows 7上使用RStudio构建一个R包.当我尝试通过RStudio的Build面板构建包时,我收到:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
http://cran.rstudio.com/bin/windows/Rtools/
Run Code Online (Sandbox Code Playgroud)
加载library(devtools)和运行find_rtools(T)给出:
Scanning path...
ls : F:\Rtools\bin\ls.exe
Scanning registry...
Found F:/Rtools for 3.1
VERSION.txt
Rtools version 3.1.0.1936
[1] TRUE
Run Code Online (Sandbox Code Playgroud)
Path变量设置为:
F:\Rtools\bin;F:\Rtools\gcc-4.6.3\bin;F:\Rtools\perl\bin;F:\Rtools\MinGW\bin;F:\Program Files\R\R-3.0.2\bin\x64;F:\Program Files (x86)\HTML Help Workshop;F:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program …Run Code Online (Sandbox Code Playgroud) 我正在尝试安装一个R包,其中包含一些Windows下的C代码.我安装了R 3.3.0,并在计算机的D:盘上安装了Rtools 3.3.0.
而d:\Rtools\bin和d:\Rtools\mingw_64\bin都在PATH.我在命令窗口下检查了gcc命令,它正在工作.
但是当我安装软件包时,它总是试图使用c:/Rtools/mingw_64/bin/gcc,应该在d:磁盘中,然后它会c:/Rtools/mingw_64/bin/gcc: not found出错.
有人可以帮忙解决这个问题吗?
谢谢!