R包的安装错误ERROR: dependency ‘plyr’ is not available for package ‘reshape2’

在Ubuntu 14.04上尝试安装ggplot2时遇到错误,提示依赖包'plyr'不可用。为解决此问题,需要从特定网站下载r-cran-plyr包,并通过命令行进行安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我在ubuntu14.04上安装ggplot2的时候出现一下错误:

ERROR: dependency ‘plyr’ is not available for package ‘reshape2’
* removing ‘/home/wq/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/wq/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/wq/R/x86_64-pc-linux-gnu-library/3.0/ggplot2’
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpgbMDf6/downloaded_packages’
从头看,原来是plyr包没有安装,接下来安装plyr包,有
ERROR: dependency ‘plyr’ is not available for package ‘reshape2’
* removing ‘/home/wq/R/x86_64-pc-linux-gnu-library/3.0/reshape2’
Warning in install.packages :
  installation of package ‘reshape2’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpgbMDf6/downloaded_packages’
最后我找到了解决办法,将包下载下来,然后自己安装。

去这个网站https://launchpad.net/ubuntu/vivid/+package/r-cran-plyr下载r-cran-plyr包,通过如下代码安装:

setwd("/path/where/I/downloaded/the/compressed/file")
install.packages("plyr", repos=NULL)
ggplot2就通过正常的安装(install.packages("ggplot2")就可以了


ERROR: configuration failed for package ‘curl’ * removing ‘/disk221/lihx/anaconda3/envs/scmetab/lib/R/library/curl’ ERROR: dependency ‘curl’ is not available for package ‘credentials’ * removing ‘/disk221/lihx/anaconda3/envs/scmetab/lib/R/library/credentials’ ERROR: dependency ‘curl’ is not available for package ‘httr2’ * removing ‘/disk221/lihx/anaconda3/envs/scmetab/lib/R/library/httr2ERROR: dependency ‘textshaping’ is not available for package ‘ragg’ * removing ‘/disk221/lihx/anaconda3/envs/scmetab/lib/R/library/ragg’ ERROR: dependency ‘curl’ is not available for package ‘rcmdcheck’ * removing ‘/disk221/lihx/anaconda3/envs/scmetab/lib/R/library/rcmdcheck’ ERROR: dependency ‘curl’ is not available for package ‘rversions’ * removing ‘/disk221/lihx/anaconda3/envs/scmetab/lib/R/library/rversions’ ERROR: dependency ‘curl’ is not available for package ‘urlchecker’ * removing ‘/disk221/lihx/anaconda3/envs/scmetab/lib/R/library/urlchecker’ ERROR: dependency ‘credentials’ is not available for package ‘gert’ * removing ‘/disk221/lihx/anaconda3/envs/scmetab/lib/R/library/gert’ ERROR: dependency ‘httr2is not available for package ‘gh’ * removing ‘/disk221/lihx/anaconda3/envs/scmetab/lib/R/library/gh’ ERROR: dependencies ‘httr2’, ‘ragg’ are not available for package ‘pkgdown’ * removing ‘/disk221/lihx/anaconda3/envs/scmetab/lib/R/library/pkgdown’ ERROR: dependencies ‘curl’, ‘gert’, ‘gh’ are not available for package ‘usethis’ * removing ‘/disk221/lihx/anaconda3/envs/scmetab/lib/R/library/usethis’ The downloaded source packages are in ‘/tmp/Rtmp3eVzhY/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done There were 12 warnings (use warnings() to see them)
最新发布
06-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值