在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’