R Labs

Logging In

To log on to the computer, click or press any button. A log on information box should appear. Your log on information is your NetID and permanent PIN. If you have changed your webmail password, you may need to use that password instead of your permanent PIN. This will log you onto a personal account on the computer. You should not need multifactor authentication for this process. If necessary, you can reset your UCR password using a phone or tablet by going to password.ucr.edu. The first time to log on to a lab computer, it may take a few minutes to set up your account. This is normal!

If you are unable to log on even after resetting your password and talking to your TA, you may visit Student Computing Services in Watkins 2117. Note that you will still be required to complete the day’s lab.

Using R

R is already installed on the lab computers. There should be an R icon on the Desktop (it may be labeled R x64 3.2.5 or something similar). You may also use RStudio, a useful GUI for working with R. We will work directly in the R Console, which will appear when you open R or RStudio.

Alternately, open up a web browser and navigate to rstudio.cloud/projects. This is an online version of RStudio. You will need to create a (free) account to use this website, but this will allow you to save your work in the cloud. If you are having any issues using R or RStudio on the lab computers, this should fix those issues. To access the RStudio console, click on “new project” or click on one of your existing projects to continue working.

If you want to spend time working with R at home, you may download R here. You may also want to download RStudio.

Accessing Labs

To access the labs, copy the following code into the R Console window and press Enter. Wait until you see the prompt “What shall I call you?”. Enter your name and follow the rest of the prompts to complete the lab.

install.packages("swirl")
library(swirl)
uninstall_course("STAT100A")
install_course_github("lgpcappiello", "STAT100A")
swirl()

Note: you may see red text that says either “course not found” or “course uninstalled successfully”. Both are normal! Uninstalling and (re)installing the course each time allows us to update the labs throughout the term.

Help

For help during lab, raise your hand and ask your TA. For questions outside of lab, please feel free to come to office hours, email the instructor or your TA, find one of us before or after class, or stop us on the street. :)