install

First install R itself and then RStudio. Follow the steps below depending on your operating system.
Jump to section: Windows, Mac, Linux, Manjaro

Windows

  • install R
  • install RStudio
  • change the .RData settings to enhance reproducibility

Mac

Either

  • install homebrew
  • in the terminal, run (one after the other)
    brew install --cask r
    brew install --cask rstudio
  • change the .RData settings to enhance reproducibility

or

  • install Xquartz
  • from cran.r-project.org/bin/macosx, download the latest release, e.g. R-4.5.2.pkg
  • open the file with ‘Installer’ and follow the instructions
  • install RStudio
  • drag the app to the ‘Applications’ folder
  • change the .RData settings to enhance reproducibility

Linux

  • open a terminal (CTRL+ALT+T) and paste (CTRL+SHIFT+V) the lines from the Ubuntu instructions one by one, but:
    • instead of the last line, use
      sudo apt install r-base r-base-dev
    • on Linux Mint, replace $(lsb_release -cs) with e.g. jammy or noble
    • on Debian, use this link and key
  • download the RStudio deb file and run:
    sudo apt install gdebi-core
    sudo gdebi rstudio-*.deb
  • change the .RData settings to enhance reproducibility
  • if you expect to install many packages with non-R dependencies, check out r2u

Manjaro Linux

  • enable AUR
  • search for rstudio-desktop and install it. R will be installed with it. This may take up to an hour.
    (Instructions by Frank de Boer).
  • change the .RData settings to enhance reproducibility