Pre-course installation for your computer

  • R and Rstudio are two separate programs. You must install R first. Then install Rstudio desktop.
  • For help, try watching this video
  • Even if you have R installed already, we highly recommend installing the latest version if it has been a while since you installed it. Just follow the instructions as below to update everything.

If you prefer to use PSU’s VLAB

You can run R and Rstudio through PSU’s virtual computing environment if you have PSU credentials (i.e. SPH students).

  • Go to vlab.pdx.edu
  • Sign in with your PSU (pdx.edu) credentials.
  • Open/launch “Computer Lab”
  • Sign in with your PSU (pdx.edu) credentials, again.
  • Open Rstudio
  • Read more about VLAB here

Install R and Rstudio on your computer

1. Install R (also do this if you need to update R to version > 4.0, > 4.2 preferred)

2. Install RStudio Desktop from Posit website (also do this if you wish to update Rstudio)

- Open the downloaded file and run the installation software.

3. Open Rstudio Desktop

After installation, open Rstudio by clicking on the Rstudio icon, a round blue ball with R in it, that should look something like this:

Do not open the regular R software, it is just working in the background when you use Rstudio.

4. Download class materials from dropbox

Once you have installed R and Rstudio, download the part1 class materials folder. Open Rstudio by double clicking on part1.rproj file. Open the file 00-install-packages.R by clicking on that file name in the “Files” pane. When the file opens, click “Source” at the top of the code to run the entire script.

Here’s a quick video showing you how to do all of that if you have trouble (PC users watch to 5:27 minute mark; note dropbox download may look different using other browsers).

Prepare for the course

Still want more preparation?

Instructor Info

Jessica Minnier, PhD Oregon Health & Science University

Slides and code for BERD workshop materials: jminnier/berd_r_courses