This article covers R installation on Ubuntu 20.04 system. R is an open-source programming language, R is widely used for performing data analysis and statistical computing. Supported by the R Foundation for Statistical Computing, it is an increasingly popular and extensible language with an active community. R offers many user-generated packages for specific areas of study, which makes it applicable to many fields.
To Install R on Ubuntu:
1. Add the relevant GPG key,
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
2. Add the repository,
$ sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
3. Run update after this in order to include package manifests from the new repository.
$ sudo apt update
4. Install R with the following command:
$ sudo apt install r-base
If prompted to confirm installation, press y to continue.