Recently I updated my R from 3.6.3 to 4.0.5. I can install packages by BiocManager::install() while I was using R 3.6.3. However, I cannot install packages by BiocManager::install() while I am using R 4.0.5. I can install packages such as ggplot2 by install.packages("ggplot2") in R 4.0.5. I don't know why BiocManager::install() didn't work in my computer for R 4.0.5. Please see the error message below. Thank you!
> if (!requireNamespace("BiocManager", quietly = TRUE)) + install.packages("BiocManager") > > BiocManager::install("sva") 'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details replacement repositories: CRAN: https://cran.rstudio.com/ Bioconductor version 3.12 (BiocManager 1.30.13), R 4.0.5 (2021-03-31) Installing package(s) 'BiocVersion', 'sva' also installing the dependency ‘genefilter’ Error in readRDS(dest) : error reading from connection