ggplot2离线安装linux,ggplot2无法在R 3.0.2上安装

我无法在Ubuntu的R 3.0.2中安装ggp​​lot2.

当我跑

install.packages('ggplot2',dependencies = TRUE)

我收到以下错误.

> install.packages('ggplot2',dependencies = TRUE)

Installing package into ‘/home/gowthamn/R/x86_64-pc-linux-gnu-library/3.0’

(as ‘lib’ is unspecified)

Warning in install.packages :

dependencies ‘plyr’, ‘testthat’ are not available

also installing the dependencies ‘reshape2’, ‘scales’, ‘Hmisc’

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/scales_0.2.4.tar.gz'

Content type 'application/x-gzip' length 40093 bytes (39 Kb)

opened URL

==================================================

downloaded 39 Kb

trying URL 'http://cran.rstudio.com/src/contrib/Hmisc_3.16-0.tar.gz'

Content type 'application/x-gzip' length 629536 bytes (614 Kb)

opened URL

==================================================

downloaded 614 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

ERROR: dependency ‘plyr’ is not available for package ‘reshape2’

* removing ‘/home/gowthamn/R/x86_64-pc-linux-gnu-library/3.0/reshape2’

Warning in install.packages :

installation of package ‘reshape2’ had non-zero exit status

ERROR: dependency ‘plyr’ is not available for package ‘scales’

* removing ‘/home/gowthamn/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 ‘plyr’, ‘reshape2’, ‘scales’ are not available for package ‘ggplot2’

* removing ‘/home/gowthamn/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’, ‘scales’ are not available for package ‘Hmisc’

* removing ‘/home/gowthamn/R/x86_64-pc-linux-gnu-library/3.0/Hmisc’

Warning in install.packages :

installation of package ‘Hmisc’ had non-zero exit status

我也试过

install.packages(c('reshape2','scales'))

获取plyr不可用的错误.

我还升级了Ubuntu,并重新安装了最新版本的R,并使用update.packages(checkBuilt = TRUE)更新了这些软件包.

但是,没有任何效果.我能做什么?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值