我正在尝试在Mac上安装插入符号。我正在运行mac os siera。当我运行
library(‘caret’)
它抛出一个错误,因为它说未安装“ robustbase”,因此我尝试运行下面的代码来安装robustbase,然后出现以下错误。
我发现了几则帖子,其中提到了设置dependency = TRUE,但是我尝试了一下,却一无所获。任何提示都将不胜感激。
错误:
install.packages('robustbase',dependencies=TRUE)
There is a binary version available but the source version
is later:
binary source needs_compilation
robustbase 0.93-1.1 0.93-3 TRUE
Do you want to install from sources the package which needs compilation?
y/n: y
installing the source package ‘robustbase’
trying URL 'https://cran.rstudio.com/src/contrib/robustbase_0.93-3.tar.gz'
Content type 'application/x-gzip' length 2960261 bytes (2.8 MB)
==================================================
downloaded 2.8 MB
* installing *source* package ‘robustbase’ ...
** package ‘robustbase’ successfully unpacked and MD5 sums checked
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c R-rng4ftn.c -o R-rng4ftn.o
gfortran -fPIC -g -O2 -c eigen.f -o eigen.o
make: gfortran: No such file or directory
make: *** [eigen.o] Error 1
ERROR: compilation failed for package ‘robustbase’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/robustbase’
Warning in install.packages :
installation of package ‘robustbase’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/l6/22422fbd22bcctgfsyx22_rw0000gp/T/RtmpZQRb5t/downloaded_packages’