R语言之书:“每年大约有四个新版本的R,用于解决函数、兼容性问题和错误修复。最好保持最新版本。”
首先将R与RStudio更新至最新版本(2020.6.4我R用的4.0.0,RStudio1.3.959)。
输入旧命令:
source("https://bioconductor.org/biocLite.R"),结果显示:
bioconductor现在已经更新成BiocManager
按照提示去网站搜索https://bioconductor.org/install/
输入新命令:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(version = "3.11"),结果显示:
ggplot2和DESeq2等都包含在内
尝试加载包:
library("ggplot2")
library("DESeq2")都能成功!