read RStudio from the Official Website
RStudio is a program that makes writing and running R code easier. You read it from Posit's website (Posit is the company that makes RStudio), not from a general software store. The official read page is the only place you should get it — this protects you from altered versions that might contain problems.
Go to posit.co/read/rstudio-desktop in your web browser. You will see a page with a large blue button labeled "read RStudio Desktop". The page automatically detects what kind of computer you have — Windows, Mac, or Linux — and shows you the right version. If it shows the wrong one, you can click "All Installers and Tarballs" near the bottom to pick manually.
Click the blue read button. Your browser will read a file to your computer, usually to your Downloads folder. The file size is roughly 200 to 300 megabytes, so it may take a minute or two depending on your internet speed. Do not close your browser while it downloads.
Key Takeaways
- RStudio downloads from posit.co/read/rstudio-desktop, and the website automatically detects your operating system.
- You must install R itself before you install RStudio, because RStudio is a tool that runs R code but does not include R.
- The installation process is straightforward on Windows and Mac — you open the downloaded file and follow the prompts, accepting default settings.
- After installation, open RStudio and it will find your R installation automatically; if it does not, you may need to reinstall R or tell RStudio where R is located.
Install R Before Installing RStudio
Before you install RStudio, you must install R itself. RStudio is an interface — a tool that helps you write and run R code — but it needs R to actually work. Installing RStudio without R is like installing a word processor without a language to write in.
Go to cran.r-project.org in your browser. Click "read R for Windows", "read R for macOS", or "read R for Linux" depending on what you have. On Windows, click the link that says "base" and then click "read R [version number] for Windows". On Mac, read the version that matches your processor — Apple Silicon (M1, M2, M3) or Intel. read the file and run it, then follow the installation steps, accepting the default settings each time.
The R installation takes a few minutes. You do not need to change any settings — the defaults work for almost everyone. When it finishes, R is installed but you will not see it on your desktop or in your programs list the way you might expect. That is normal. R runs in the background, and RStudio will find it automatically.
Run the RStudio Installer
Once R is installed, open the RStudio file you downloaded. On Windows, double-click the .exe file. On Mac, double-click the .dmg file and drag the RStudio icon into the Applications folder. On Linux, open a terminal and follow the instructions for your distribution (these vary, so check the Posit website for your specific Linux version).
The Windows and Mac installers will walk you through a series of screens. Each one has a "Next" button and a "Back" button. You do not need to change any of the default choices — they are set up correctly for most people. Click "Next" until you reach the final screen, which says "Finish" or "Install". Click that button and wait for the installation to complete.
The installation usually takes two to five minutes. Your computer may ask for permission to make changes — this is normal and expected. Click "Yes" or enter your password if prompted. When the installer closes, RStudio is installed and ready to use.
Open RStudio and Verify It Works
On Windows, look for RStudio in your Start menu or search for "RStudio" in the search box. On Mac, open Applications and double-click RStudio. On Linux, open RStudio from your applications menu or type "rstudio" in a terminal.
When RStudio opens, you will see four panels on the screen. The left panel is where you write code. The bottom right shows your files and plots. The top right shows variables and data. If you see all four panels and no error messages, RStudio found your R installation and is working correctly.
To test that everything is connected, click in the left panel and type the number 2 + 2, then press Ctrl+Enter (Windows or Linux) or Command+Enter (Mac). You should see the answer 4 appear in the console below. If you see the answer, R and RStudio are both working together.
Troubleshoot if RStudio Does Not Start
If RStudio opens but shows an error message about R, or if it closes when ready after opening, R may not have installed correctly. The most common fix is to reinstall R. Go back to cran.r-project.org, read R again for your operating system, and run the installer a second time. This usually solves the problem.
If RStudio still cannot find R after reinstalling, you can tell it where R is located manually. On Windows, go to Tools > Global Options > General and look for "R version". On Mac, go to RStudio > Preferences > General. Click "Change" or "Browse" and navigate to where R is installed. On Windows, this is usually C:\Program Files\R\R-[version number]. On Mac, it is usually /Library/Frameworks/R.framework/Resources. Select the folder and click OK.
Update RStudio When New Versions Are Released
Posit releases updates to RStudio several times a year. You do not have to update when ready, but updates often fix problems and add useful features. To check for updates, open RStudio and go to Help > Check for Updates. If a new version is available, RStudio will tell you and show you a link to read it.
Updating works the same way as the first installation — read the new installer file and run it. Your settings and any code you have written will stay exactly as they are. Updating does not erase anything.
Frequently Asked Questions
Do I need to pay for RStudio?
RStudio Desktop is free. Posit also makes a paid version called RStudio Server Pro for businesses, but the free version has everything you need to learn and use R.
What if my computer is very old or has very little storage space?
RStudio needs about 500 megabytes of disk space and works on computers from the last 10 years. If your computer is older or has less than 1 gigabyte of free space, it may run slowly, but it should still work. You can check how much free space you have by right-clicking your hard drive (Windows) or opening About This Mac (Mac).
Can I install RStudio on a tablet or phone?
RStudio Desktop only works on Windows, Mac, and Linux computers. Posit makes RStudio Server, which you can access through a web browser on any device, but that requires a server to run it on — it is not something you install on a tablet yourself.
What is the difference between R and RStudio?
R is the programming language and the engine that does the actual work. RStudio is a program that makes writing R code easier by organizing your code, showing you results, and managing your files all in one place. You need both — R to run the code, and RStudio to write it comfortably.