Obtaining and installing R
It’s simple to install R on computers running Microsoft Windows, macOS, or Linux. For other operating systems, users can compile the source code directly.1 Following is a step-by-step guide to installing R for Microsoft Windows.2 macOS and Linux users would follow similar steps.
- Go to http://www.r-project.org/
- Click on the
CRAN
link on the left side of the page - Choose one of the mirrors3
- Click on
Download R for Windows
- Click on
base
- Click on
Download R 4.0.2 for Windows
- Install R as you would install any other Windows program
Obtaining and installing RStudio
You must install R prior to installing RStudio. RStudio is also simple to install:
- Go to http://www.rstudio.com
- Click on the link
RStudio
under theProducts
tab - Click on the
RStudio Desktop
box - Choose the
DOWNLOAD RSTUDIO DESKTOP
link in theOpen Source Edition
column - On the ensuing page, click on the
Installer
version for your operating system, and once downloaded, install as you would any other program
- Windows, macOS, and Linux users also can compile the source code directly, but for most it’s a better idea to install R from already compiled binary distributions. ^
- New versions of R are released regularly, so the version number in Step 6 might be different from what is listed below. ^
- As the name implies, all mirrors provide the exact same software. The https://cloud.r-project.org/ mirror is usually fast; otherwise choose a mirror close to your geographic location. ^