How to Download and Install R for Windows

In this short tutorial, you’ll see how to download and install R for Windows. You’ll also see how to run a simple code in R.

Steps to Download and Install R for Windows

Step 1: Download R

To start, go to cran.r-project.org/bin/windows/base, and then click on the link to “Download R for Windows.”

In my case, I downloaded R 4.0.0 for Windows:

How to Download and Install R for Windows

Step 2: Run the .exe file

Once the download is completed, run the .exe file:

exe file

Step 3: Install R

Follow the installation instructions:

Setup

For an easy access, you may want to check the boxes to create additional shortcuts:

How to Download and Install R for Windows

Step 4: Launch R

Once you completed the installation, launch R:

Launch R

Step 5: Run your Script

You’ll now see the following screen:

RGui

To run a new script, click on File, and then select New Script:

New Script

Then, type your script in the R Editor. For example, I typed the following syntax to print the “Hello World” expression:

print ("Hello World")

This is how the syntax would look like in the R Editor. Press F5 to run your script:

How to Download and Install R for Windows

You’ll then see the result in the R Console:

Download and Install R for WindowsAdditional Resources

You may also want to check the following guides that explain the steps to: