How to Install R on Ubuntu 22.04 LTS
Jul 11, 2022
This article covers the steps required to install R on Ubuntu 22.04 LTS.
To install R on Ubuntu 22.04, follow these steps:
Install the dependencies necessary:
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
Add the CRAN repository:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
Install R:
sudo apt install r-base
Check R version:
R --version
That’s it, R has been installed on your Ubuntu machine, and you can start using it.
Please follow me, I will follow back you. Thanks.