In this article, we will have explained the necessary steps to install R Programming Language on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
R is an open-source programming language that is used in analyzing and implementing data and statistical computing. It is mainly used by statisticians and data miners for developing statistical software and performing data analysis.
Install R Programming Language on Ubuntu 20.04
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
Step 2. Install R Programming Language on Ubuntu.
Installing R Programming Language on your Ubuntu Linux system is straightforward, Now we add CRAN repository to your system:
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
After that, import the GPG key that is required the verify the authenticity of the R package:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
Now update your local repository index and install it:
sudo apt update sudo apt install r-base r-base-dev
Once the R is installed, type the following command to check the installed version of R programming software:
That’s all you need to do to install R Programming on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on installing R Programming Language, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.