在R的devel版本下,Rtools无法安装在Windows上?

时间:2016-11-30 20:31:38

标签: r r-package

我正在尝试在Windows 8.1上使用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:

当我在控制台中输入命令时:

install.packages("Rtools")
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘Rtools’ is not available (for R Under development)

第一次在Rstudio中构建R包,如果我使用install.packages(),或者直接从CRAN安装.exe文件,我感到很困惑。在Rstudio上进行包构建的正确方法是什么?我使用了devel版本的R.任何人都可以快速解决这个问题吗?非常感谢

我从CRAN下载了Rtools.exe并安装在我的机器上,尝试了33,34.exe,并重新启动了Rstudio,但仍然无法构建我的软件包,它一直说:

WARNING: Rtools is required to build R packages but no version of Rtools compatible with the currently running version of R was found. Note that the following incompatible version(s) of Rtools were found:

  - Rtools 3.3 (installed at c:\Rtools)

Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/

1 个答案:

答案 0 :(得分:2)

从这里下载并像软件一样安装。 https://cran.r-project.org/bin/windows/Rtools/