![](/img/trans.png)
[英]"/bin/sh: XX: command not found" error when trying to install development version of R fst package from github
[英]An error when trying to install a package related to R version
我正在嘗試使用命令install.packages('ggpubr')
安裝 package ggpubr
,但出現錯誤:
Installing package into ‘/home/nasser/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘cowplot’ is not available
I then tried to install the package cowplot
using install.packages('cowplot')
command and again I got the following error Warning in install.packages: package 'cowplot' is not available (for R version 3.4.4)
我搜索了一個解決方案,並找到了使用以下命令的建議:
devtools::install_github("wilkelab/cowplot")
我得到這個錯誤ERROR: this R is version 3.4.4, package 'cowplot' requires R >= 3.5.0
經過很長時間尋找解決方案,我最終沒有完美的解決方案。
你能建議我避免這個錯誤的方法嗎?
您已安裝 R 版本 3.4.4。 cowplot
需要 3.5.0 或更高版本。 您必須升級 R 的版本。
有時這是不可能的(例如在工作網絡上)。 在這些情況下,另一種方法是安裝沒有該要求的舊版本的cowplot
。 當然,這意味着您使用的是舊版本的 package。 CRAN 上提供了舊 package 版本的存檔。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.