install R on ubuntu 20.04 How?

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

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-base

Step 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
Output
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.
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
Mel
Melhttps://unixcop.com
Unix/Linux Guru and FOSS supporter

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook