У меня не получается установить lme4 (все работало нормально, потом я ненадолго отошел, сделал одно или два обновления в промежутке, теперь тот же код перестал работать).
код, который я использую:
install.packages("lme4", dependencies = TRUE)
library(lme4)
Я получаю ошибку:
There is a binary version available but the source version is later:
binary source needs_compilation
Rcpp 1.0.4 1.0.4.6 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel)
Первый вопрос - это говорит о том, что проблема в пакете R cpp, который lme4 зависит от?
Я печатаю:
y
Второй вопрос - это правильно?
Я получаю следующее сообщение:
The downloaded binary packages are in
/var/folders/fr/x0qmcc0d3s1grpw1dc946sch0000gn/T//RtmpCLLS34/downloaded_packages
installing the source package ‘Rcpp’
trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/Rcpp_1.0.4.6.tar.gz'
Content type 'application/x-gzip' length 2751467 bytes (2.6 MB)
==================================================
downloaded 2.6 MB
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp’
The downloaded source packages are in
‘/private/var/folders/fr/x0qmcc0d3s1grpw1dc946sch0000gn/T/RtmpCLLS34/downloaded_packages’
Warning message:
In install.packages("lme4", dependencies = TRUE) :
installation of package ‘Rcpp’ had non-zero exit status
Третий вопрос - что означает вышеприведенное сообщение и как его исправить?
Заранее спасибо за помощь!