How To Install R and Rstudio on CentOS 8

Windows Articles

How to install KVM on Debian 10?

Hello friends, in this post I will show you how to install KVM on Debian 10. KVM stands for...

How to open Windows 10 Mobility Center

Hello! There are many types of users of Windows 10. As it depends on the type of hardware used. That is, the...

Ubuntu 20.04.1 available

Canonical, the company led by Mark Shuttleworth, releases Ubuntu 20.04.1. It has a new image, with updates and security patches for the...

How to install Linux Kernel 5.8 on Ubuntu 20.04?

Upgrading the Linux Kernel can be a beneficial task, but it is always optional. Recently we talked about the Linux Kernel 5.8...

How to activate XPS Viewer in Windows 10

Hey, what's up! When working with Windows 10 we probably use a lot of files. Indeed, these files have many extensions. For...

Today we are going to learn that how to install R & R Studio on CentOS 8. R is a famous programming language mostly used for the presentation of data in graphical for & the statics computing. You can google the search for more information here we’ll provide some features and the installation of R & RStudio. So, just follow the below steps for easy installation and guide on how to install R & Rstudio on CentOS 8.

Features of RStudio

  • Support Windows, Linux, and macOS
  • Syntax highlighting, code completion, and smart indentation
  • Integrated support for Git and Subversion
  • Execute R code directly from the source editor
  • Fastly jump to function definitions
  • Manage multiple working directories using projects
  • Integrated R help and documentation
  • Interactive debugger to diagnose and fix errors quickly
  • Extensive package development tools
  • Support for interactive graphics with Shiny and ggvis
  • Supports authoring HTML, PDF, Word Documents, and slide shows

Step 1: Update Your System

First of all update the system.

sudo yum update

After the update finished run the below command to add the EPEL repositories.

sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf config-manager --set-enabled PowerTools

Step 2: Installing R on CentOS 8

To install the R on CentOS 8 we’ll use the automated script. Just copy and paste the below command in your terminal.

sudo bash -c "$(curl -L https://rstd.io/r-install)"

Output:

You’ll see the similar output.

[sabi@localhost ~]$ sudo bash -c "$(curl -L https://rstd.io/r-install)"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 11861 100 11861 0 0 3785 0 0:00:03 0:00:03 --:--:-- 482k
Available Versions
4.0.0
3.6.3
3.6.2
3.6.1
3.6.0
3.5.3
3.5.2
3.5.1
3.5.0
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.3
3.3.2
3.3.1
3.3.0
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.3
3.1.2
3.1.1
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
Enter version to install: ( for latest)

You can pick the version to install on your system from the above list. To install the latest version just hit the Enter.

Verify the installation by checking the version of R installed.

/opt/R/${R_VERSION}/bin/R --version

Output:

[sabi@localhost ~]$ /opt/R/4.0.0/bin/R --version
R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.

Note: ${R_VERSION} is the version of your installed R. So, in my case it would be.

Now, add the path to R binary to your $PATH.

vim ~/.bashrc
export PATH=$PATH:/opt/R/4.0.0/bin/R --version
export PATH=$PATH:/opt/R/4.0.0/bin/

Then source the file & confirm it.

Output:

[sabi@localhost ~]$ source .bashrc
[sabi@localhost ~]$ which R
/opt/R/4.0.0/bin/R
[sabi@localhost ~]$ R --version
R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.

Step 3: Installing RStudio on CentOS 8

To install the RStudio on CentOS 8 first, download the package from the official page. We’ll get it through terminal with the help of wget.

sudo yum -y install wget
wget https://download1.rstudio.org/desktop/centos8/x86_64/rstudio-1.3.959-x86_64.rpm

Once the download finished, install it using rpm or yum command.

sudo yum localinstall ./

And press “Y” when prompted.

Wait for the installation to be finished. Now, you can launch it from CLI or Desktop.

[sabi@localhost ~]$ sudo yum localinstall ./rstudio-1.3.959-x86_64.rpm
Last metadata expiration check: 0:33:14 ago on Fri 05 Jun 2020 05:14:10 AM EDT.
Dependencies resolved.
Package Architecture Version Repository Size
Installing:
rstudio x86_64 1.3.959-1 @commandline 143 M
Transaction Summary
Install 1 Package
Total size: 143 M
Installed size: 821 M
Is this ok [y/N]: y

So, you’ve learned that how to Install R & RStudio on CentOS 8.

Please share this post and join our Telegram Channel.

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install KVM on Debian 10?

Hello friends, in this post I will show you how to install KVM on Debian 10. KVM stands for...

How to open Windows 10 Mobility Center

Hello! There are many types of users of Windows 10. As it depends on the type of hardware used. That is, the...

Ubuntu 20.04.1 available

Canonical, the company led by Mark Shuttleworth, releases Ubuntu 20.04.1. It has a new image, with updates and security patches for the...

How to install Linux Kernel 5.8 on Ubuntu 20.04?

Upgrading the Linux Kernel can be a beneficial task, but it is always optional. Recently we talked about the Linux Kernel 5.8...

How to activate XPS Viewer in Windows 10

Hey, what's up! When working with Windows 10 we probably use a lot of files. Indeed, these files have many extensions. For...