Problème de dépendance lors de l'installation de caret paquet dans la R

Je suis en train d'installer le package R caret

Qui me donne ERROR: dependencies ‘ggplot2’, ‘reshape2’, ‘BradleyTerry2’ are not available for package ‘caret’

J'ai essayé d'installer chacun de ces individuellement, ce qui montre une fois de plus l'installation en cours, se terminant avec le message que 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

Demander de manière récursive pour installer un paquet. Quel est le problème?

J'avais l'ancienne version, où j'ai été faire une erreur semblable. Je l'ai enlevé et installé plus tard. Actuellement la version est R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet", mais toujours se message d'erreur similaire

Mise à JOUR

Commencé avec : install.packages('caret', repos='http://cran.rstudio.com/') qui affiche le message:

Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘minqa’, ‘RcppEigen’, ‘scales’, ‘lme4’, ‘ggplot2’, ‘reshape2’, ‘BradleyTerry2’

et le processus se termine par :

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
  • Avez-vous essayé après la modification de la repos? c'est à dire. install.packages('caret', repos='http://cran.rstudio.com/')
  • oui, il a essayé, veuillez vérifier la mise à jour
  • Si c'est le cas, je voudrais d'abord réinstaller stringr et ensuite installer les dépendances, un par un, la modification de la repos si ce n'est pas disponible, puis installer caret. BTW, j'ai aussi pumpkin helmet et ont caret installé.
  • quelle est la version de R-vous?
  • Même version que la tienne R 3.1.2 et caret_6.0-35, stringr_0.6.2
  • Gratter mon commentaire précédent-- au moins pour OSX, le CRAN binaires ont été construits sous 3.1.0 et installer l'amende juste. BTW, quel système d'exploitation utilisez-vous?
  • A gcc-fortran été installé?

InformationsquelleAutor user123 | 2014-12-15