LIVEReading: Run RStudio IDE for R Data Science on Your DesktopTotal time: 8 minSteps: 5Worked first time: 92% LIVEReading: Run RStudio IDE for R Data Science on Your DesktopTotal time: 8 minSteps: 5Worked first time: 92%
CBW
Run RStudio IDE for R Data Science on Your Desktop
Easygithub.com/rstudio/rstudio2026-07-19

Run RStudio IDE for R Data Science on Your Desktop

RStudio is a free, polished desktop app that gives you everything you need to write and run R code — console, plots, files, and packages all in one window. This guide gets you from zero to a working RStudio install without touching source code.

// Build stats

  • Total time8 min
  • Number of steps5
  • DifficultyEasy
  • Worked first time92%
// Before you start

What you need

  • A Windows, Mac, or Linux computer
  • ~500 MB of free disk space
  • Internet connection for downloads
  • No coding experience required
01
Step 1 of 5

Download and install R itself

5 min

RStudio is a shell around R — R is the actual engine that runs your code. You must install R first or RStudio will open but refuse to do anything useful. Go to the official R download page and grab the installer for your operating system.

Terminal · mac
$ Open your browser and go to: https://cran.r-project.org/
$ Click 'Download R for Windows', 'Download R for macOS', or 'Download R for Linux' — whichever matches your machine.
$ Run the downloaded installer and accept all defaults.
What you should see
R installs silently. On Windows you will see an R icon on the desktop. On Mac, R appears in /Applications. On Linux, the package manager confirms installation.
This might happen

On macOS Apple Silicon (M1/M2/M3) you must download the 'arm64' build of R, not the Intel one, or performance will be very poor.

On the macOS download page, look for the file ending in '-arm64.pkg' and download that one instead of the standard '.pkg'.

02
Step 2 of 5

Download the free RStudio Desktop installer

3 min

Posit (the company behind RStudio) provides a free 'RStudio Desktop' edition. You do not need to build anything from source — just download the pre-built installer for your OS from their official page.

Terminal · mac
$ Open your browser and go to: https://posit.co/download/rstudio-desktop/
$ Scroll to 'Step 2: Install RStudio' and click the button for your operating system to download the installer file.
What you should see
A file downloads — it will be named something like 'RStudio-2024.x.x-xxx.exe' (Windows), 'RStudio-2024.x.x-xxx.dmg' (Mac), or 'rstudio-2024.x.x-xxx.amd64.deb' (Ubuntu/Debian).
03
Step 3 of 5

Install RStudio Desktop

3 min

Run the installer you just downloaded exactly like any other desktop application. No terminal needed. Accept all defaults and let it finish.

Terminal · mac
$ Windows: Double-click the .exe file and click Next through all screens, then Install.
$ Mac: Double-click the .dmg file, then drag the RStudio icon into your Applications folder.
$ Ubuntu/Debian Linux: Open a terminal and run:
$ sudo dpkg -i ~/Downloads/rstudio-*.deb
$ sudo apt-get install -f
What you should see
RStudio appears in your applications list (Start Menu on Windows, Applications folder on Mac, app launcher on Linux).
This might happen

On Ubuntu/Debian the dpkg command may report missing dependencies.

Run 'sudo apt-get install -f' immediately after the dpkg command — this auto-installs any missing pieces.

04
Step 4 of 5

Launch RStudio and confirm R is detected

2 min

Open RStudio from your applications list. When it starts, it should automatically find the R installation you did in Step 1. The bottom-left pane is the Console — you will see the R version number printed there, which confirms everything is connected.

Terminal · mac
$ Click the RStudio icon to open it.
$ Look at the bottom-left Console pane for a message like:
$ R version 4.x.x (yyyy-mm-dd)
What you should see
The Console pane shows the R version banner and ends with a '>' prompt, meaning R is ready to accept commands.
This might happen

RStudio opens but the Console says 'R not found' or shows an error about no R installation.

Close RStudio, make sure R installed correctly by re-running the R installer from Step 1, then reopen RStudio. On Mac, ensure R is in /Applications/R.app.

05
Step 5 of 5

Run a quick test to confirm everything works

1 min

Click inside the Console pane (bottom-left), type the command below, and press Enter. This draws a simple plot using R's built-in data. If a chart appears in the bottom-right Plots pane, your setup is fully working.

Terminal · mac
$ plot(cars)
What you should see
A scatter plot of car speed vs. stopping distance appears in the Plots pane on the bottom right of RStudio.
// Status

cooked. baked. worked.

A fully working RStudio Desktop IDE on your computer, connected to R, ready for data analysis, statistics, and report writing with R Markdown or Quarto.

// the honest bit

The honest part

This guide installs the free RStudio Desktop edition — great for personal use on your own machine. It is not the server version (which lets multiple people share one install via a browser). RStudio is an IDE, not an AI tool on its own; the optional AI features (GitHub Copilot, Posit Assistant) require separate accounts and subscriptions. Building RStudio from its GitHub source code is a multi-hour process requiring Java, CMake, and deep developer tooling — this guide deliberately skips that and uses the official pre-built installer instead.