De Barros - Installing R On Windows
De Barros - Installing R On Windows
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:
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/