2.3 R on Linux

How you install R on Linux depends on which flavour of Linux you have. In most cases, R is already included in your Linux distribution. You can check this by opening a terminal and typing R. If it is installed, R will start in the terminal. If R is not part of your system, run the following in a terminal

  1. sudo apt update
  2. sudo apt install r-base r-base-dev -y
  3. Now run “R” to see if the installation worked

To install RStudio, go to https://www.rstudio.com/products/rstudio/download/. At the bottom of the page, select the installer for your operating system. Then install the file either using an installation manager or via the terminal. After running the launcher, you will find RStudio in the Dash.