r-安装MKmisc包时依赖关系limma不可用



在R 4.2.1 中安装此软件包时

install.packages("MKmisc")

我有这个输出

Installing package into ‘C:/Users/blahblah/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘limma’ is not available
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/MKmisc_1.8.zip'
Content type 'application/zip' length 769544 bytes (751 KB)
downloaded 751 KB
package ‘MKmisc’ successfully unpacked and MD5 sums checked

它不起作用,因为我们需要下载包limma,所以让我们用

install_github("cran/limma")

然而,它给出了一个错误,并且MKmisc包仍然不能在中工作

我该怎么处理这个问题?

"limma"可以使用BiocManager安装。

if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("limma")
install.packages("MKmisc")
# * DONE (MKmisc)
# The downloaded source packages are in
#         ‘/tmp/Rtmphwh6rY/downloaded_packages’

最新更新