0

我无法安装 dplyr。尝试安装后我有以下答案

  There are binary versions available but the source versions are later:
          binary source needs_compilation
backports  1.0.3  1.1.4             FALSE
Rcpp      0.12.6  1.0.1              TRUE
tibble       1.1  2.1.1              TRUE
dplyr      0.5.0  0.8.1              TRUE

  Binaries will be installed
Packages which are only available in source form, and may need compilation of
  C/C++/Fortran: ‘utf8’ ‘vctrs’ ‘fansi’ ‘glue’ ‘rlang’ ‘tidyselect’
  These will not be installed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2651k  100 2651k    0     0   464k      0  0:00:05  0:00:05 --:--:--  529k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  165k  100  165k    0     0   188k      0 --:--:-- --:--:-- --:--:--  233k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3722k  100 3722k    0     0   613k      0  0:00:06  0:00:06 --:--:--  732k

The downloaded binary packages are in
    /var/folders/np/f2p1wtb97f9_b_y_x0m1s60w0000gn/T//Rtmpm572i3/downloaded_packages
installing the source packages ‘backports’, ‘pillar’

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13859  100 13859    0     0  37534      0 --:--:-- --:--:-- --:--:-- 70350
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  223k  100  223k    0     0   202k      0  0:00:01  0:00:01 --:--:--  242k
* installing *source* package ‘backports’ ...
** package ‘backports’ successfully unpacked and MD5 sums checked
** libs
sh: make: command not found
ERROR: compilation failed for package ‘backports’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/backports’
Warning in install.packages :
  installation of package ‘backports’ had non-zero exit status
ERROR: dependencies ‘fansi’, ‘rlang’, ‘utf8’, ‘vctrs’ are not available for package ‘pillar’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/pillar’
Warning in install.packages :
  installation of package ‘pillar’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/np/f2p1wtb97f9_b_y_x0m1s60w0000gn/T/Rtmpm572i3/downloaded_packages’

我的会话信息:

R version 3.2.1 (2015-06-18)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
Running under: OS X 10.8.5 (Mountain Lion)

locale:
[1] es_ES.UTF-8/es_ES.UTF-8/es_ES.UTF-8/C/es_ES.UTF-8/es_ES.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] remotes_2.0.4

loaded via a namespace (and not attached):
[1] httr_1.4.0     R6_2.4.0       tools_3.2.1    RCurl_1.95-4.8 digest_0.6.10  bitops_1.0-6
4

1 回答 1

0

撇开Snark不谈,这将很难。正如评论所建议的那样,如果可能的话,您最简单的方法是将您的 R 版本更新为最新或接近最新的版本。

理论上可以在非常旧的操作系统上为旧版本的 R/R 编译/安装 R 和软件包,但实际上它很快就会变得困难。您最好的选择是查看您是否可以从此处安装开发工具(这可能有点困难,因为该信息并不总是适用于旧操作系统版本/保持最新)。

R 版本可能是比操作系统更大的障碍;CRAN为 OS >= 10.6 提供二进制文件。然而:

  • 不为旧版本的 R 提供二进制文件
  • 新包可能显式依赖于较新版本的 R。

如果无法访问开发工具,您可以尝试使用快照包来使用MRAN“时间机器”(CRAN 以前实例的镜像)——它可以追溯到 2014 年 9 月。但是,这不会为任何包的二进制文件获取在您的 R 版本为 current 之后首次发布,其中包括您尝试安装的大多数 tidyverse 软件包...

于 2019-05-28T22:47:27.437 回答