Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install the R Language on Windows

Download R from CRAN, run the installer and choose the components.

Windows Hosting2 min read9 screenshots

Before you start

R runs on Windows 7 and later (64-bit is advised). You need around 1 GB of free disk space. Install R before RStudio, if you plan to use RStudio.

Download R

Open the CRAN website (cran.r-project.org), click Download R for Windows, then base, and Download R x.y.z for Windows.

The R download page
Choosing the Windows version
Downloading R for Windows

Install R

Step 1: Run the installer. Open the downloaded .exe file.

Step 2: Choose the language of the installer.

Selecting the installation language

Step 3: Accept the license (GNU GPL) and click Next.

Accepting the license agreement

Step 4: Choose the install folder. The default is C:\Program Files\R\R-x.y.z.

Choosing the installation location

Step 5: Select the components

  • Main files. The core R software, including the R console.
  • 64-bit files. The 64-bit version of R.
  • Message translations. Translations of the R messages.

Keep the defaults.

Step 6: Choose the Start Menu folder.

Choosing the Start Menu folder

Step 7: Finish. Click Next and wait for the install.

Installing R

Step 8: Complete. Click Finish.

The R installation is complete

Check R

Open R from the Start menu (the R Console). Type:

version

and press Enter. You see the R version. Try a calculation:

2 + 2

Install a package

install.packages("ggplot2")
library(ggplot2)

Why use R on Windows

  • A great choice for data analysis and statistics.
  • Cross-platform. Your scripts also run on Linux and macOS.
  • Thousands of packages on CRAN.
  • A strong community.
  • Works well with RStudio (a friendly IDE).

Quick recap

  • Download R from CRAN and run the installer.
  • Keep the default components.
  • Check with version in the R console.