2 Installing R and RStudio

You will need to install both R and RStudio. R is the programming language you will use, RStudio is the interface. You need to install R first. There are many online resources describing how to do so, just google “installing R and RStudio”. If you prefer, you can watch a video here: https://www.youtube.com/watch?v=TFGYlKvQEQ4 or follow the instructions below.

Remember, it is important that you install R first, then RStudio.

To install R:

  • Go to https://www.r-project.org and click on Download R .
  • You will see a list of CRAN mirrors. CRAN (Comprehensive R Archive Network) is a network of ftp and web servers around the world that store identical, up-to-date, versions of code and documentation for R. You should use the CRAN mirror nearest to you or 0-cloud to minimize network load. For us, that would be one of the Pittsburgh servers.
  • Choose Download R for macOS or Download R for Windows and follow the prompts.

To install RStudio:

  • Go to https://posit.co and click on Download RStudio .
  • On the next page scroll down until you see the FREE RStudio Desktop Open source Edition. Do NOT download the ridiculously expensive $995 Pro version, we won’t need it.
  • Click on Download and follow the prompts.

If you have been a good person and everything worked out, you will now have the blue round RStudio Icon on your desktop.