Warning in install.packages :
installation of package ‘googledrive’ had non-zero exit status
ERROR: dependencies ‘curl’, ‘gargle’, ‘googledrive’, ‘httr’, ‘ids’ are not available for package ‘googlesheets4’
* removing ‘/home/lanewhitten/R/x86_64-redhat-linux-gnu-library/4.0/googlesheets4’
Warning in install.packages :
installation of package ‘googlesheets4’ had non-zero exit status
ERROR: dependencies ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘rvest’ are not available for package ‘tidyverse’
* removing ‘/home/lanewhitten/R/x86_64-redhat-linux-gnu-library/4.0/tidyverse’
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpxCRrL7/downloaded_packages’
这是我错误消息的尾巴。 IVE已经使用在Fedora上安装了卷曲
sudo dnf install curl
关于如何解决此问题,切换操作系统或运行虚拟机是我的总损失。
需要安装错误消息中未指定的开发软件包
sudo dnf install libcurl-devel
sudo dnf install openssl-devel
then do install.packages("tidyverse")
这将使您在Fedora上的R体验变得更加容易
install.packages()
luckily,有一个Fedora的COPR存储库,可为All
Cran包提供最新的二进制文件。您要做的就是在系统终端中运行这几行(不是R控制台):
sudo dnf install 'dnf-command(copr)'
sudo dnf copr enable iucar/cran
sudo dnf install R-CoprManager
在r中,将通过系统软件包管理器安装所需的软件包。这也意味着每当您运行
install.packages()
或使用桌面环境软件管理GUI时,您将收到R软件包更新。
您可以在Cran网站上找到有关此文件的文档。
update:fordora
如果您使用的是R,则可能也需要Rstudio。从Fedora 41开始,Rstudio不再可通过Fedora Repos获得。那是因为Rstudio从QT切换到电子。幸运的是,制作Cran Copr回购的同一位作者也为Rstudio提供了一个:
dnf update