看起来我有组成tidyverse的所有依赖项,如dplyr,purr,broom,stringr等。当我检查我的.installedpackages()tidyverse不存在时,当我尝试安装.packages(“tidyverse”)时,它没有添加到我的软件包列表中,我得到以下输出:
The downloaded source packages are in
‘/private/var/folders/4d/rw_b0kln1g127gn9mc5905t00000gn/T/RtmpMIaOnB/downloaded_packages’
Warning messages:
1: In install.packages("tidyverse") :
installation of package ‘ps’ had non-zero exit status
2: In install.packages("tidyverse") :
installation of package ‘systemfonts’ had non-zero exit status
3: In install.packages("tidyverse") :
installation of package ‘processx’ had non-zero exit status
4: In install.packages("tidyverse") :
installation of package ‘textshaping’ had non-zero exit status
5: In install.packages("tidyverse") :
installation of package ‘callr’ had non-zero exit status
6: In install.packages("tidyverse") :
installation of package ‘ragg’ had non-zero exit status
7: In install.packages("tidyverse") :
installation of package ‘reprex’ had non-zero exit status
8: In install.packages("tidyverse") :
installation of package ‘tidyverse’ had non-zero exit status
字符串
我能够安装其他软件包,它们马上就被添加了,虽然我很难安装Tidyverse软件包,这是我所需要的全部。我也尝试过终端,结果与RStudio中的控制台类似。
.libPaths() #output in Rstudio console
[1] "/usr/local/lib/R/4.3/site-library" "/usr/local/Cellar/r/4.3.1/lib/R/library"
型
我必须显式地为我的R包定义一个路径吗?这是我输入.libPaths()
时弹出的2个。当install.packages("tidyverse")
在控制台中不工作时,我尝试:install.packages("tidyverse", lib = "/usr/local/lib/R/4.3/site-library")
,结果是一样的。
我所有的软件包,homebrew,rstudio,都是最新的。我已经重新启动了我的Rstudio会话,但仍然什么都没有。
我甚至尝试卸载组成tidyverse的软件包:
remove.packages(c("ggplot2", "dplyr", "tidyr", "readr", "purrr", "tibble", "stringr", "forcats"))
install.packages(c("ggplot2", "dplyr", "tidyr", "readr", "purrr", "tibble", "stringr", "forcats"))
install.packages("tidyverse")
型
还有这个
install.packages("tidyverse", type = "binary")
型
而且似乎什么都不起作用,如果有人能帮助我,我将非常感激:)
2条答案
按热度按时间oprakyz71#
您可以尝试使用此命令安装
tidyverse
。字符串
Tidyverse GitHub
否则,我认为我们可能需要更多的背景,看看问题是什么。
guz6ccqo2#
我的建议是在RStudio中尝试以下操作:
字符串
如果这不起作用,我建议按照以下指南重新安装R:https://cran.r-project.org/
然后再次尝试BiocManager,这是安装R包最安全的方法