2 Start using R & RStudio

Recall our car analogy from a previous tutorial. Much as we don’t drive a car by interacting directly with the engine but rather by using elements on the car’s dashboard, we won’t be using R directly but rather we will use RStudio’s interface. After you install R and RStudio on your computer, you’ll have two new programs AKA applications you can open. We will always work in RStudio and not R. In other words:

R: DO NOT OPEN THIS

Figure 2.1: R: DO NOT OPEN THIS

RStudio: OPEN THIS

Figure 2.2: RStudio: OPEN THIS

Launch RStudio on your computer to make sure it’s working (it loads R for you in the background).