Download RStudio directly from Posit's website

RStudio is a free integrated development environment (IDE) for the R programming language. You download it from Posit (the company that makes it), not from a general software repository. The official download page is at posit.co/download/rstudio-desktop.

Before you download RStudio, you need R itself installed on your computer first. RStudio is a tool that runs on top of R — it won't work without R already present. If you don't have R yet, go to cran.r-project.org, choose your operating system (Windows, Mac, or Linux), and follow the installer for the base R distribution. Once R is installed, come back and download RStudio.

The RStudio download page shows you options for Windows, Mac, and Linux. Click the button for your operating system. The page will detect your system automatically in most cases, but you can also scroll down to see all available versions if you need a different one.

Key Takeaways

  • Install R from cran.r-project.org before you install RStudio, because RStudio needs R to run.
  • Download RStudio from posit.co/download/rstudio-desktop — this is the only official source you need.
  • The installer file is different for Windows (.exe), Mac (.dmg), and Linux (.tar.gz), so make sure you pick the right one for your system.
  • After downloading, run the installer file and follow the on-screen prompts; no special configuration is needed for most users.

Windows installation steps

On Windows, the download gives you a .exe file. Locate this file (usually in your Downloads folder) and double-click it. A setup wizard will open. Click "Next" through the default settings unless you have a specific reason to change them — the default installation location (usually C:\Program Files\RStudio) works for almost everyone.

The installer will ask where you want the program to appear in your Start menu. The default option is fine. When you reach the final screen, click "Install" and wait for the process to finish. This usually takes one to two minutes. Once complete, click "Finish" and RStudio will be ready to use. You can launch it from your Start menu or by searching for "RStudio" in Windows Search.

Mac installation steps

On Mac, the download gives you a .dmg file. Double-click it to open the disk image. A window will appear showing the RStudio icon and an Applications folder. Drag the RStudio icon into the Applications folder. This copies RStudio to your Applications directory, which is where macOS expects programs to live.

Once the copy finishes, you can eject the disk image by clicking the eject icon next to it in Finder. Open Applications (you can search for it using Spotlight by pressing Command+Space and typing "Applications"), find RStudio, and double-click it to launch. The first time you open it, macOS may ask for permission — click "Open" to confirm.

Linux installation steps

On Linux, the download gives you a .tar.gz file. The exact installation method depends on your distribution. For Ubuntu and Debian-based systems, Posit provides a .deb file on the same download page — this is easier than the .tar.gz. Select the .deb file for your Ubuntu or Debian version, download it, and then open a terminal.

Navigate to your Downloads folder and run: sudo dpkg -i rstudio-[version]-amd64.deb (replace [version] with the actual version number of the file you downloaded). You may be prompted for your password. Once installation finishes, launch RStudio by typing rstudio in the terminal or by searching for it in your application menu.

If you're using a different Linux distribution (Fedora, CentOS, Arch), Posit's download page lists distribution-specific instructions. The .tar.gz file can be extracted and used on any Linux system, but the .deb or .rpm packages are simpler if your distribution supports them.

Verify that R and RStudio are working together

After you open RStudio for the first time, you should see the console pane on the left side of the window. This is where R code runs. Type the number 2+2 and press Enter. If you see the answer 4 appear below your command, both R and RStudio are installed correctly and communicating with each other.

If you see an error message instead, the most common cause is that R was not installed before RStudio, or R was installed in an unusual location. Close RStudio, go back to cran.r-project.org, and install R using the standard installer for your operating system. Then open RStudio again and try the test command.

Updating RStudio later

RStudio releases updates periodically. You don't need to update immediately — older versions continue to work. When you're ready to update, go back to posit.co/download/rstudio-desktop, download the latest version for your system, and run the installer. On Windows and Mac, the new installer will replace the old version. On Linux, use the same package manager command with the new .deb or .rpm file.

Your projects and settings are stored separately from the RStudio program itself, so updating won't affect your work. If you ever need to go back to an older version, you can download it from Posit's archive, though this is rarely necessary.

Frequently Asked Questions

Do I need to pay for RStudio?

No. RStudio Desktop is free and open-source. Posit also makes a paid server version (RStudio Server Pro) for organizations, but the version you download for personal use has no cost or license restrictions.

What if the installer won't run or I get an error?

The most common cause is that R is not installed. Go to cran.r-project.org and install R first, then try the RStudio installer again. On Windows, if you see a message about missing files, try downloading RStudio again — the file may have been corrupted. On Mac, if you see a security warning, right-click the .dmg file and select "Open" instead of double-clicking.

Can I have multiple versions of RStudio on the same computer?

Yes, but it's not recommended. Each version will try to use the same R installation, which can cause confusion. If you need to test an older version, uninstall the current one first, or use a virtual machine or separate user account.

Where does RStudio store my projects and files?

RStudio stores projects wherever you save them on your computer — usually in a folder you create yourself. RStudio's settings and configuration are stored in a hidden folder (.Rprofile on Mac and Linux, or in AppData on Windows), but you don't need to interact with these directly.