Я пытаюсь установить пакет R caret
Что дает мне ERROR: dependencies ‘ggplot2’, ‘reshape2’, ‘BradleyTerry2’ are not available for package ‘caret’
Я попытался установить каждый из них по отдельности, что снова показывает, что установка продолжается, заканчиваясь сообщением о том, что installation of package ‘X’ had non-zero exit status
1: In install.packages("caret") :
installation of package ‘minqa’ had non-zero exit status
2: In install.packages("caret") :
installation of package ‘RcppEigen’ had non-zero exit status
3: In install.packages("caret") :
installation of package ‘scales’ had non-zero exit status
4: In install.packages("caret") :
installation of package ‘reshape2’ had non-zero exit status
5: In install.packages("caret") :
installation of package ‘lme4’ had non-zero exit status
6: In install.packages("caret") :
installation of package ‘ggplot2’ had non-zero exit status
7: In install.packages("caret") :
installation of package ‘BradleyTerry2’ had non-zero exit status
8: In install.packages("caret") :
installation of package ‘caret’ had non-zero exit status
Запросить рекурсивно установить какой-нибудь пакет. В чем проблема?
У меня была более старая версия, где я получал аналогичную ошибку. Я удалил и установил последнюю. Текущая версия R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
, но по-прежнему появляется похожее сообщение об ошибке.
ОБНОВЛЕНИЕ
НАЧАЛСЯ с: install.packages('caret', repos='http://cran.rstudio.com/')
, который отображает сообщение:
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘minqa’, ‘RcppEigen’, ‘scales’, ‘lme4’, ‘ggplot2’, ‘reshape2’, ‘BradleyTerry2’
и процесс заканчивается:
installing to /usr/local/lib/R/site-library/reshape2/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error : package ‘stringr’ was built before R 3.0.0: please re-install it
ERROR: lazy loading failed for package ‘reshape2’
* removing ‘/usr/local/lib/R/site-library/reshape2’
ERROR: dependencies ‘minqa’, ‘RcppEigen’ are not available for package ‘lme4’
* removing ‘/usr/local/lib/R/site-library/lme4’
ERROR: dependencies ‘reshape2’, ‘scales’ are not available for package ‘ggplot2’
* removing ‘/usr/local/lib/R/site-library/ggplot2’
ERROR: dependency ‘lme4’ is not available for package ‘BradleyTerry2’
* removing ‘/usr/local/lib/R/site-library/BradleyTerry2’
ERROR: dependencies ‘ggplot2’, ‘reshape2’, ‘BradleyTerry2’ are not available for package ‘caret’
* removing ‘/usr/local/lib/R/site-library/caret’
The downloaded source packages are in
‘/tmp/RtmpcLo8Rw/downloaded_packages’
Warning messages:
1: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘minqa’ had non-zero exit status
2: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘RcppEigen’ had non-zero exit status
3: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘scales’ had non-zero exit status
4: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘reshape2’ had non-zero exit status
5: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘lme4’ had non-zero exit status
6: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘ggplot2’ had non-zero exit status
7: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘BradleyTerry2’ had non-zero exit status
8: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘caret’ had non-zero exit status
repos
? т.е.install.packages('caret', repos='http://cran.rstudio.com/')
- person akrun   schedule 15.12.2014stringr
, а затем установил зависимости одну за другой, изменивrepos
, если он недоступен, а затем установилcaret
. Кстати, у меня также естьpumpkin helmet
и установленcaret
. - person akrun   schedule 15.12.2014R 3.1.2
иcaret_6.0-35
,stringr_0.6.2
- person akrun   schedule 15.12.2014CRAN
были собраны под 3.1.0 и должны нормально устанавливаться. Кстати, какую ОС вы используете? - person Carl Witthoft   schedule 15.12.2014gcc-fortran
? - person imriss   schedule 22.02.2016