Entering edit mode
several time I tried to install DESeq2 but I had problem and it didn't work. An error tells me I need to upgrade my R version. but unfortunately every time I reinstall R it was 4.1.2 version, not 4.2.1. my operation system is Ubuntu 22.04 LTS.
Please tell me how I can solve my problem.
Please show the command and the output.
using this command I tried to install R version 4.2 but after installation it was 4.1.2
sudo apt install -y --no-install-recommends software-properties-common dirmngr
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
sudo apt install --no-install-recommends r-base
and
using this command I tried to install DESeq2 but it didt install the package
if (!require("BiocManager", quietly = TRUE)) install.packages("BiocManager")
BiocManager::install("DESeq2")
Error Installing package into ‘/home/hadi/R/x86_64-pc-linux-gnu-library/4.1’ (as ‘lib’ is unspecified) Warning: unable to access index for repository https://cloud.r-project.org/src/contrib: cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES' Warning message: package ‘BiocManager’ is not available for this version of R
A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages Error in loadNamespace(x) : there is no package called ‘BiocManager’
Maybe it is trivial but did you restart R after upgrading ?