【发布时间】:2015-06-28 20:20:09
【问题描述】:
尝试安装软件包时:
> install.packages("mlr")
Installing package into ‘/home/kisco/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependencies ‘plyr’, ‘dplyr’, ‘lazyeval’ are not available
also installing the dependencies ‘scales’, ‘ggplot2’, ‘ggvis’, ‘reshape2’
trying URL 'http://cran.rstudio.com/src/contrib/scales_0.2.5.tar.gz'
Content type 'application/x-gzip' length 56346 bytes (55 Kb)
opened URL
==================================================
downloaded 55 Kb
trying URL 'http://cran.rstudio.com/src/contrib/ggplot2_1.0.1.tar.gz'
Content type 'application/x-gzip' length 2351203 bytes (2.2 Mb)
opened URL
==================================================
downloaded 2.2 Mb
trying URL 'http://cran.rstudio.com/src/contrib/ggvis_0.4.2.tar.gz'
Content type 'application/x-gzip' length 728345 bytes (711 Kb)
opened URL
==================================================
downloaded 711 Kb
trying URL 'http://cran.rstudio.com/src/contrib/reshape2_1.4.1.tar.gz'
Content type 'application/x-gzip' length 34693 bytes (33 Kb)
opened URL
==================================================
downloaded 33 Kb
trying URL 'http://cran.rstudio.com/src/contrib/mlr_2.4.tar.gz'
Content type 'application/x-gzip' length 440988 bytes (430 Kb)
opened URL
==================================================
downloaded 430 Kb
ERROR: dependency ‘plyr’ is not available for package ‘scales’
* removing ‘/home/kisco/R/x86_64-pc-linux-gnu-library/3.0/scales’
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependencies ‘dplyr’, ‘lazyeval’ are not available for package ‘ggvis’
* removing ‘/home/kisco/R/x86_64-pc-linux-gnu-library/3.0/ggvis’
Warning in install.packages :
installation of package ‘ggvis’ had non-zero exit status
ERROR: dependency ‘plyr’ is not available for package ‘reshape2’
* removing ‘/home/kisco/R/x86_64-pc-linux-gnu-library/3.0/reshape2’
Warning in install.packages :
installation of package ‘reshape2’ had non-zero exit status
ERROR: dependencies ‘plyr’, ‘reshape2’, ‘scales’ are not available for package ‘ggplot2’
* removing ‘/home/kisco/R/x86_64-pc-linux-gnu-library/3.0/ggplot2’
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
ERROR: dependencies ‘ggplot2’, ‘ggvis’, ‘plyr’, ‘reshape2’ are not available for package ‘mlr’
- 删除“/home/kisco/R/x86_64-pc-linux-gnu-library/3.0/mlr” install.packages 中的警告: 安装包“mlr”的退出状态非零
下载的源码包在 '/tmp/Rtmp3AjleG/downloaded_packages'
我在 install.packages insallation of package 中不断收到“错误”警告...退出状态不为零。
我做错了什么?如何安装 MLR?
【问题讨论】:
-
在安装 mlr 之前尝试安装‘plyr’、‘dplyr’、‘lazyeval’。
-
> install.packages('plyr') 将包安装到 '/home/kisco/R/x86_64-pc-linux-gnu-library/3.0' (因为 'lib' 未指定) 警告install.packages : 包 'plyr' 不可用(对于 R 版本 3.0.2)
-
我今天安装“plyr”时也出错。尝试重新启动 R/Rstudio,它对我有用。
-
更新
R怎么样?最新版本是R-3.2.1。 -
根据您的错误消息,您使用的是
Rversion 3.0.2。我认为按照cran.r-project.org 上的说明更新 R- 3.2.1 可能会有所帮助。您使用 apt-get 获得的版本不一定是最新版本。
标签: r installation package failed-installation