How to install RStudio on Ubuntu 22.04 Jammy Jellyfish Linux

RStudio is a free integrated development environment for the R programming language. R is an open source programming language (software package) and environment used mainly for statistical data analysis. It is licensed under the GNU General Public License (GPL).

As with most other programming languages, it is easier to work on your projects inside of an IDE such as RStudio. In this tutorial you will find the step by step instructions to install RStudio on Ubuntu 22.04 Jammy Jellyfish.

In this tutorial you will learn:

  • How to install RStudio prerequisites
  • How to install RStudio
  • How to start Rstudio application
RStudio installation on Ubuntu 22.04 Jammy Jellyfish
RStudio installation on Ubuntu 22.04 Jammy Jellyfish
Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Ubuntu 22.04 Jammy Jellyfish
Software RStudio, r-cran
Other Privileged access to your Linux system as root or via the sudo command.
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

How to install RStudio on Ubuntu 22.04 Jammy Jellyfish step by step instructions



  1. First, we need to install all of the prerequisites for RStudio. Get started by opening a command line terminal and entering the following apt commands.
    $ sudo apt update
    $ sudo apt -y install r-base gdebi-core
    
  2. Next, download the Rstudio *.deb package from the official Rstudio website. Head for the most recent Ubuntu release available, meaning if the Ubuntu 22 - jammy package is not available, download the Ubuntu 20 - focal version. Example of downloaded package:
    $ ls
    rstudio-2022.02.0-443-amd64.deb
    
  3. Use the gdebi command to install the previously downloaded package. The gdebi command will ensure that all additional prerequisites are also downloaded to fulfill the RStudio requirements:
    $ sudo gdebi rstudio-2022.02.0-443-amd64.deb
    
  4. After the installation has finished up, use the top left Activities menu and search for the RStudio application. Click on the icon to start it.
    Launch RStudio on Ubuntu 22.04 Jammy Jellyfish Linux
    Launch RStudio on Ubuntu 22.04 Jammy Jellyfish Linux
  5. Alternatively, you can start the RStudio application from the command line by executing the below command:
    $ rstudio
    

Closing Thoughts

In this tutorial, we saw how to install the RStudio IDE for the R programming language on Ubuntu 22.04 Jammy Jellyfish Linux. Hopefully you find this free software to be a suitable environment for your R coding.