edgeR and DESeq2 are Bioconductor packages, so they canât be installed from CRAN using the usual install.packages()
method. Please see their Bioconductor pages for installation instructions:
If you havenât used Bioconductor packages before, itâs also worth making sure you understand how the Bioconductor package, repository and additional packages work, and how things differ from regular R in Bioconductor-land. Start here: https://bioconductor.org/install/
Itâs especially important to make sure that you are running âmatchingâ releases of R and Bioconductor when using Bioconductor packages. Unless you have a very good reason for running an older version of R (and understand how to match that to the appropriate Bioconductor release and package versions), Iâd strongly recommend updating R to the latest version and reinstalling Bioconductor (from the instructions above) before going further.