## First, install the BiocManager package, which will allow you to install packages from Bioconductor install.packages("BiocManager") ## Next, install Bioconductor BiocManager::install() ## or check that you have a valid installation BiocManager::valid() ## Then, run the following code to install the necessary packages. This can take some time. pkg <- c("shiny", "rmarkdown", "QuasR", "rtracklayer", "Gviz", "Biostrings", "limma", "csaw", "BSgenome.Mmusculus.UCSC.mm10") pkg <- setdiff(pkg, rownames(installed.packages())) if (length(pkg) > 0) { BiocManager::install(pkg) } ## Finally, check that you can load the packages, i.e., that the following runs without errors suppressPackageStartupMessages({ invisible(lapply(pkg, library, character.only = TRUE)) }) ## For more information and troubleshooting, visit https://www.bioconductor.org/install/