Announcement

Questions about the course?

Questions from the prepare assignment?

Tour of R and RStudio

Let’s take a tour of R and RStudio. Go to vm-manage.oit.duke.edu and open the STA198-199 Docker containers.

3 * 5 + 10
x <- 3
x + x^2
x <- 1:10
x*7

AE-02: Bechdel Test

usethis::use_course("sta199-fa21-003/ae-02")

Understanding the R Project & R Markdown

  • R Project
  • R Markdown file

R Markdown vs. Console

  • Run the following in the console
x <- 2
x * 3
  • Then add the following in an R code chunk in your R Markdown file.
x * 3
  • What happens? Why the error?
  • Let’s fix it!

Bechdel test anlaysis

GitHub demo

  • Configure git using SSH – covered in lab tomorrow!
  • Clone repo + start new project
  • Update document
  • 🧶 ✅ ⬆️ knit, commit, push
  • Check changes in GitHub repo
  • See Commit history

Submission

There is nothing to submit for today’s AE. Starting Monday, you will submit push your AE to your GitHub repo.