FAQ

How do I download R and RStudio?

R is freely maintained by an international team of developers and is available through The Comprehensive R Archive Network. Follow the instructions below to download R. If you are using an older computer or iPad, skip to Using Posit Cloud for R below.

Downloading R

  • Go to The Comprehensive R Archive Network webpage:
  • To install R on Windows, click the “Download R for Windows” link.
  • To install R on a Mac, click the “Download R for Mac” link.

Downloading RStudio

One way to picture what RStudio does is to compare it to Microsoft Word, a software application that allows us to write documents. RStudio, instead of being a platform to write text, helps us write in the coding language R. Follow the instructions below to download RStudio.

  • Go to the Posit RStudio Desktop page.
  • To install for Mac:
    • Scroll to the button that says “Install RStudio on a Mac,” and click the “Download RStudio for Mac OS 13+” link.
    • If you’re using an older version, click the “Previous Versions” link to find a version that works with your computer.
  • To install for Windows:
    • Scroll to the button that says “Install RStudio on Windows 10/11,” and click the link to download.

Using Posit Cloud for R

Posit Cloud is the most common cloud service used when working with RStudio and is free up to a point.

https://posit.cloud/

  • First, choose the “Cloud Free” plan.
  • Second, follow the Posit Cloud instructions to log in.
  • Third, go to the “Tutorial” tab in the upper right corner, scroll to the bottom, and select “Getting Started with Tutorials,” then press the “Start Tutorial” button.
  • You will work in a single RProject space for the majority of the class.

What is a Quarto file?

If you have ever used an Rmarkdown file before, Quarto is the next generation version of this! Quarto files allow you to make PDF, Word documents, presentations, and even websites. In this course you will be making a Word document using a provided Quarto file for your lab submissions.

What is a file path?

A file path is a unique “address” that tells your computer where to find certain information. For example, if you are looking for a document called Homework1.qmd in a folder on your desktop labeled POL 051, then the file path to find this document would be:

~/desktop/POL 051/Homework1.qmd

Mac File Path Setup

MacBooks and Windows computers have different starts to their file paths; here is a MacBook’s setup:

/Users/John/desktop/POL 051/Homework1.qmd

Windows File Path Setup

C:/Users/John/desktop/POL 051/Homework1.qmd

What is a working directory?

The working directory is the folder on your computer that you have set to save files to during your working session in R. Essentially, you are telling your computer to save any new documents or updates to this specific folder, rather than maybe your downloads folder.

It is important to keep all the files associated with a given project, such as data, scripts, analytical results, and figures, together. To do this we need to make a working directory.

For full step-by-step instructions on creating and setting a working directory (with code for both Mac and Windows), see the Setting up a Working Directory section on the R Basics page.

If you still feel like this ⤸

PLEASE PLEASE PLEASE come to office hours or email me!