What R is and where to get it

R is a free programming language built for statistics and data analysis. You read it from the official R Project website at r-project.org, not from app stores or software retailers. The site offers versions for Windows, macOS, and Linux, and the read itself is straightforward — you pick your operating system, read the installer file, and run it like any other program.

R is different from many other programs because it works best alongside a text editor or IDE (integrated development environment). Most people use R with RStudio, which is a separate program that makes R easier to work with. You can read R first and add RStudio later, or install both. This guide covers downloading R itself; if you want RStudio, you read that separately from rstudio.com after R is installed.

Key Takeaways

  • R downloads from r-project.org in a version specific to your operating system — Windows, macOS, or Linux.
  • The read is a single installer file that you run once, and R installs into your Programs folder (Windows) or Applications folder (macOS).
  • R requires no license key, registration, or payment — it is completely free and open-source.
  • After installation, you can run R directly, but most users also read RStudio separately to make working with R easier.

Downloading R on Windows

Go to r-project.org and look for the "read" link on the home page. Click it, then select "read R for Windows". On the next page, click "base" — this is the standard version most people need. You will see a button that says "read R-X.X.X for Windows" (the X's are version numbers that change). Click that button to read the installer file, usually named something like "R-4.3.2-win.exe".

Once the file downloads, open your Downloads folder and double-click the installer. Windows will ask if you want to allow the program to make changes to your computer — click "Yes". The installer will walk you through a series of screens asking where to install R and what components to include. The default choices work for most people — just click "Next" through each screen until you reach "Finish". R will then install into your Program Files folder, and a shortcut will appear on your desktop or in your Start menu.

Downloading R on macOS

Go to r-project.org and click "read". Select "read R for macOS". The page will show several read options depending on your Mac's processor — if you have an Apple Silicon Mac (M1, M2, M3 chip), read the "arm64" version. If you have an older Intel-based Mac, read the "x86_64" version. If you are not sure which you have, click the Apple menu, select "About This Mac", and look for the Processor line.

Click the read link for your processor type. The file will be a .pkg installer, usually named something like "R-4.3.2-arm64.pkg". Once it downloads, double-click it to open the installer. macOS will walk you through the installation process — click "Continue" and then "Install" when prompted. You may need to enter your Mac password. R will install into your Applications folder, and you can launch it from Spotlight (press Command+Space, type "R", and press Enter) or from the Applications folder directly.

Downloading R on Linux

Linux installation varies by distribution. On Ubuntu or Debian-based systems, open a terminal and run the command to add the R repository, then use your package manager to install. The R Project website has specific instructions for Ubuntu, Debian, Fedora, and other distributions — go to r-project.org, click "read", select "read R for Linux", and follow the instructions for your specific system.

Most Linux users will run a few terminal commands rather than downloading a single installer file. If you are new to Linux or uncomfortable with the terminal, you may want to ask in a Linux community forum or check your distribution's documentation, as the exact steps depend on which version of Linux you are running.

What happens after you install R

Once R is installed, you can launch it directly — on Windows, search for "R" in your Start menu; on macOS, use Spotlight or open Applications and find R. When you open R, you will see a window with a command prompt (a line that starts with ">"). This is where you type commands to run analyses. However, this basic R window is minimal and difficult to work with for most tasks.

Most people read and install RStudio after R is installed. RStudio is a separate program that sits on top of R and gives you a much better interface — it shows your code, your results, your files, and your plots all in one organized window. You read RStudio from rstudio.com, choose the free version, and install it the same way you installed R. Once RStudio is installed, you will use RStudio to work with R, not the basic R window.

Checking that R installed correctly

Open R (or RStudio if you have installed it). At the command prompt, type the number 2 plus 2, then press Enter: type "2+2" and hit Return or Enter. R should print "[1] 4" on the next line. If you see that result, R is working. You can also type "R.version" and press Enter to see which version of R you have installed.

If R does not open, or if you get an error message, check that the installer completed without interruption. On Windows, look in Program Files for a folder named "R" — if it is not there, the installation may have failed. On macOS, check your Applications folder for R.app. If the folder or process is missing, read the installer again and run it, making sure to click through all the prompts to completion.

Updating R when new versions are released

The R Project releases new versions regularly. When a new version is available, you can read and install it the same way you installed the first version — go to r-project.org, read the latest installer for your operating system, and run it. On Windows and macOS, installing a new version will not remove the old one unless you manually delete it, so you can have multiple versions installed if needed.

If you have installed RStudio, it will work with any version of R you have on your computer. You can tell RStudio which version of R to use by going to Tools > Global Options > General and selecting the R version from the dropdown. Most people just keep the newest version and delete older ones to save disk space.

Frequently Asked Questions

Do I need to pay for R or get a license?

No. R is free and open-source — there is no cost, no license key, and no registration required. Anyone can read it and use it.

Can I use R without RStudio?

Yes. R works on its own with just the basic command window. However, RStudio makes it much easier to organize your work, see your plots, and manage your files. Most people use RStudio, but it is not required.

What if I read the wrong version for my computer?

The installer will not run if you read the wrong version. On macOS, if you read the Intel version on an Apple Silicon Mac, you will get an error. Go back to r-project.org, read the correct version for your processor, and run that installer instead.

How much disk space does R need?

R itself takes roughly 100 to 200 megabytes of disk space, depending on the version and operating system. RStudio takes a similar amount. Both are small compared to most modern programs.

Can I uninstall R if I change my mind?

Yes. On Windows, go to Control Panel > Programs > Programs and Features, find R in the list, and click Uninstall. On macOS, drag R.app from your Applications folder to the Trash. You can reinstall it anytime by downloading the installer again.