R 不断询问 "installing from sources that need compilation"

R keeps asking about "installing from sources that need compilation"

我正在尝试安装软件包(devtoolsplyr 和其他几个软件包),但一直遇到同样的问题,某些软件包似乎比其他软件包出现得更频繁

 There are binary versions available but the
  source versions are later:
          binary source needs_compilation
processx  2.0.0.1  3.2.1              TRUE
desc        1.1.1  1.2.0             FALSE
callr       1.0.0  3.1.1             FALSE
git2r      0.21.0 0.24.0              TRUE
rcmdcheck   1.2.1  1.3.2             FALSE
usethis     1.1.0  1.4.0             FALSE
devtools   1.13.4  2.0.1             FALSE

Do you want to install from sources the packages which need compilation?

好吧,老实说,我不知道那是什么意思,但概率是 50/50

无论我选择 y 还是 n,我都会得到:

Packages which are only available in source
  form, and may need compilation of
  C/C++/Fortran: ‘ps’ ‘fs’ ‘pkgload’
Do you want to attempt to install these from sources?
y/n: 

无论我在这里选择 y 还是 n,我都会得到

Warning in install.packages :
  installation of package ‘devtools’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/zz/mxrvmdvd2j399kfylbspjp4r0000gn/T/Rtmp1OdcyF/downloaded_packages’

我在 Mac Mojave 10.4.2 上运行 使用 RStudio 1.1.463

我的预期结果是安装包,我可以使用类似 库(包) 开始我的工作。

我在使用 R 方面有些经验,直到最近才遇到这个问题?我需要更新某事吗?更改设置?

更新:ggplot2biomod2 显示相同的问题 更新:R(不是 RStudio)和 R 包管理器似乎没有问题....为什么会这样?

对于上面写着的包裹 需要编译:TRUE 如果您在对话框中点击 "n",您将需要 RTools。

RTools 通常安装在 Windows.

的 C: 驱动器中

这个问题和你的很相似

How do I install an R package from source?