![](/img/trans.png)
[英]Github Action failing: Process completed with exit code 1 when installing system dependencies for R-CMD-Check
[英]Installing r dependencies in Linux system?
我正在嘗試直接從開發人員處以* .tar.gz格式安裝R軟件包。 但是命令:
install.packages("~/Path/to/the/file/package.tar.gz", repos = NULL, type = "source")
給
Installing package into ‘/home/XXX/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
ERROR: dependencies ‘NetIndices’, ‘limSolve’, ‘diagram’ are not available for package ‘package’
* removing ‘/home/XXX/R/x86_64-pc-linux-gnu-library/3.2/package’
Warning in install.packages :
installation of package ‘/home/path/to/the/file/Package/package.tar.gz’ had non-zero exit status
如何獲取軟件包的依賴關系? 我嘗試在install.packages中使用dependencies = TRUE無效。
由於您將存儲repos
設置為NULL
因此無法解析依賴項。 嘗試先安裝依賴項:
install.packages(
c("NetIndices", "limSolve", "diagram"),
repos="https://cran.rstudio.com" # or other CRAN mirror
)
然后安裝源程序包。
如果您要安裝tar.gz,則必須自己安裝它們,也可以嘗試Dirk的littler“ little r”,它不是R軟件包,而是Linux工具,它除其他功能外提供了一個安裝軟件包工具,可以完成您的工作。想。 有Debian和Ubuntu軟件包。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.