1.首先安装BiocManager包
如果你的R版本为3.6版本,请将版本号设置为version = "3.11"
version = "3.12"适用于R 4.0.0
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(version = "3.12")
library("BiocManager")
2.通过BiocManager安装我们常用的R包
BiocManager::install("ggplot2")
BiocManager::install(c("ggplot2","ggtree","DESeq2"))
#一次安装多个包
source("https://bioconductor.org/biocLite.R")
BiocInstaller::biocLite(c("GenomicFeatures", "AnnotationDbi"))
#安装特定的包
网友评论