0% found this document useful (0 votes)
19 views

De Barros - Installing R On Windows

The document provides instructions for installing R, RStudio, and RTools on a Windows computer. It lists the steps to download and run the installers for each program and notes that installing RTools allows using packages that export to Excel. The instructions include links to download pages and screenshots of installer windows.

Uploaded by

Azhan Karim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

De Barros - Installing R On Windows

The document provides instructions for installing R, RStudio, and RTools on a Windows computer. It lists the steps to download and run the installers for each program and notes that installing RTools allows using packages that export to Excel. The instructions include links to download pages and screenshots of installer windows.

Uploaded by

Azhan Karim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Installing R, RStudio, and RTools on a Windows Computer

1. Install R
a. The website for R is https://www.r-project.org/
b. To download it, go to https://cran.r-project.org/mirrors.html and select a mirror. Here are the
ones nearby:
i. Pittsburgh - http://lib.stat.cmu.edu/R/CRAN/
ii. Pittsburgh - http://cran.mirrors.hoobly.com/
iii. Toronto - http://cran.utstat.utoronto.ca/
iv. The Bronx - https://mirrors.sorengard.com/cran/
c. You’ll get to a page that looks like this:

d. Click on the link for your operating system. For Windows, you’ll see something that looks like
this:

e. Click install R for the first time. You’ll see something like this:

f. Click on Download R 3.4.3 for Windows


g. Run the downloaded file (R-3.4.3-win.exe).
h. You’ll see the following series of stuff (but with 3.4.3 as the version number):
2. Install RStudio
a. Go to https://www.rstudio.com/

b. Click on Download Rstudio


c. There will be several versions. You want RStudio Desktop – Open Source License. It should be

the one all the way to the left. Click the button.
d. Select your platform (e.g. RStudio 1.1.423 - Windows Vista/7/8/10 for Windows). This will
download the file to your computer.
e. Run it. You’ll see something like the following:
3. Install Rtools
a. This is necessary if you want to use a package that exports Excel workbooks (like openxlsx).
b. Good reference: https://github.com/stan-dev/rstan/wiki/Install-Rtools-for-Windows
c. Go to http://cran.r-project.org/bin/windows/Rtools/

d. Click on the most recent version (probably Rtools34.exe)


e. Run the downloaded file – Rtools34.exe
f. On the Select Additional Tasks step, make sure both boxes are checked.
g. On the System Path step, don’t change anything
h. Close RStudio and reopen it.
i. In the console (the lower left pane), enter Sys.getenv("PATH") and hit enter. You should see
c:\\Rtools\\bin;c:\\Rtools\\mingw_32\\bin; in the output. If you don’t, you probably did
something wrong, and should just try reinstalling Rtools.

You might also like