无法在RStudio中安装任何软件包

时间:2020-03-06 00:52:15

标签: r package

我试图在R中安装软件包,但是每次它给我一个错误消息。 例如,当我尝试停顿:install.packages(“ dplyr”)时,错误消息:

/bin/sh: x86_64-apple-darwin13.4.0-clang: command not found
make: *** [capture.o] Error 127
ERROR: compilation failed for package ‘rlang’
* removing ‘/Users/hemenglu/opt/anaconda3/lib/R/library/rlang’
* restoring previous ‘/Users/hemenglu/opt/anaconda3/lib/R/library/rlang’
Warning in install.packages :
  installation of package ‘rlang’ had non-zero exit status
* installing *source* package ‘ellipsis’ ...
** package ‘ellipsis’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
x86_64-apple-darwin13.4.0-clang -I"/Users/hlu/opt/anaconda3/lib/R/include" -DNDEBUG   -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/hlu/opt/anaconda3/include  -fPIC  -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/hlu/opt/anaconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/59b7f007-fada-42cf-7435-5bbd0518eaa4/volume/r-base_1570124919999/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/hlu/opt/anaconda3=/usr/local/src/conda-prefix  -c dots.c -o dots.o
/bin/sh: x86_64-apple-darwin13.4.0-clang: command not found
make: *** [dots.o] Error 127
ERROR: compilation failed for package ‘ellipsis’
* removing ‘/Users/hlu/opt/anaconda3/lib/R/library/ellipsis’
* restoring previous ‘/Users/hlu/opt/anaconda3/lib/R/library/ellipsis’
Warning in install.packages :
  installation of package ‘ellipsis’ had non-zero exit status
* installing *source* package ‘vctrs’ ...
** package ‘vctrs’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
x86_64-apple-darwin13.4.0-clang -I"/Users/hlu/opt/anaconda3/lib/R/include" -DNDEBUG   -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -I/Users/hlu/opt/anaconda3/include  -fPIC  -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/hlu/opt/anaconda3/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/59b7f007-fada-42cf-7435-5bbd0518eaa4/volume/r-base_1570124919999/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/hlu/opt/anaconda3=/usr/local/src/conda-prefix  -c altrep-rle.c -o altrep-rle.o
/bin/sh: x86_64-apple-darwin13.4.0-clang: command not found
make: *** [altrep-rle.o] Error 127
ERROR: compilation failed for package ‘vctrs’
* removing ‘/Users/hlu/opt/anaconda3/lib/R/library/vctrs’
Warning in install.packages :
  installation of package ‘vctrs’ had non-zero exit status
ERROR: dependency ‘vctrs’ is not available for package ‘pillar’
* removing ‘/Users/hlu/opt/anaconda3/lib/R/library/pillar’
Warning in install.packages :
  installation of package ‘pillar’ had non-zero exit status
ERROR: dependency ‘pillar’ is not available for package ‘tibble’
* removing ‘/Users/hlu/opt/anaconda3/lib/R/library/tibble’
Warning in install.packages :
  installation of package ‘tibble’ had non-zero exit status
ERROR: dependency ‘tibble’ is not available for package ‘dplyr’
* removing ‘/Users/hlu/opt/anaconda3/lib/R/library/dplyr’
Warning in install.packages :
  installation of package ‘dplyr’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/nq/w5bk18255kbgczcmwhqlmqh00000gn/T/RtmpNFakPn/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

您能帮我看看它,看看那里缺少什么吗?

0 个答案:

没有答案