R is an open-source programming language and free environment that specializes in statistical computing and graphical representation. It is mainly used by statisticians and data miners for developing statistical software and performing data analysis.
This this tutorial we are going to covers the steps required to install R on Ubuntu 20.04.
Installing R on Ubuntu
To install R on Ubuntu 20.04, follow these steps:
Step 1: Install the dependencies necessary to add a new repository over HTTPS using following command
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
Step 2: Add the CRAN repository to your system sources’ list using following command
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'Step 3: Install R by typing the following command
sudo apt install r-baseStep 4: The installation may take a few minutes to complete. Once completed, verify it by printing the R version by tying following command
R version 4.0.1 (2020-06-06) -- "See Things Now" Copyright (C) 2020 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)That’s it, R has been installed on your Ubuntu machine, and you can start using it.