RStudio on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective is to install RStudio on Ubuntu 18.04 Bionic Beaver Linux

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Other Versions of this Tutorial

Ubuntu 20.04 (Focal Fossa)

Instructions

Install RStudio prerequisites

In order to install RStudio on Ubuntu 18.04 we will first need to install the r-base package. Open up terminal and enter:

$ sudo apt update
$ sudo apt -y install r-base

RStudio for Ubuntu system comes as the *.deb install-able package. The easiest way to install DEB file on Ubuntu Linux is by using the gdebi command. In case gdebi is not available on your system you can install it by executing the bellow command:

$ sudo apt install gdebi-core

Download RStudio

Next, navigate your browser to the official RStudio download page and download the latest Ubuntu/Debian RStudio *.deb package available.

At the time of writing the Ubuntu 18.04 Bionic package is not available yet. If this is still the case download the Ubuntu 16.04 Xenial package instead.

$ cd Downloads/
$ ls
rstudio-xenial-1.1.442-amd64.deb


Install RStudio on Ubuntu

At this stage we are ready to install RStudio on our Ubuntu 18.04 system. Run the below gdebi command from the location of your downloaded RStudio package while replacing the package name where appropriate. When prompted, answer y to proceed with the installation:

$ sudo gdebi rstudio-xenial-1.1.442-amd64.deb

Once the installation of RStudio on your Ubuntu system is completed you can start RStudio by executing the following linux command:

$ rstudio

Alternatively, search your start menu and start RStudio by clicking on its icon:

Start RStudio on Ubuntu 18.04

Start RStudio on Ubuntu 18.04

RStudio on Ubuntu 18.04

RStudio on Ubuntu 18.04