1. 加载biocLite.R脚本
source("https://bioconductor.org/biocLite.R")
这一步是使用biocLite.R脚本来安装Bioconductor的包。如果https://不行,就换成http://试试。
2.用biocLite()下载
# biocLite(c("GenomicFeatures", "AnnotationDbi"))
biocLite("DESeq2")
3. 安装BiocInstaller代替“加载biocLite.R脚本”
http://www.bioconductor.org/packages/release/bioc/html/BiocInstaller.html
source("https://bioconductor.org/biocLite.R")
biocLite("BiocInstaller")
4. BiocInstaller加载库的方法
library(BiocInstaller)
biocLite("DESeq2")
5. 测试安装包是否加载成功
library("DESeq2")
# 还是不能成功加载,可能是这个包的问题,没有安装成功。