#' ---
#' title: "Homework 0: Installation Checkpoint"
#' author: "YOUR NAME HERE"
#' ---

#' If this document compiles to HTML, then R, RStudio, and the course
#' packages are all installed and working on my computer.
#+ message=FALSE
library(tidyverse)
library(devtools)
library(testthat)

#' Versions installed, and when I compiled this:

R.version.string
packageVersion("tidyverse")
packageVersion("devtools")
packageVersion("testthat")
Sys.time()

#' testthat can run a test. (This is the package that will check your answers
#' in the homework koans.)

test_that("my computer is ready for the koans", {
  expect_equal(2 + 2, 4)
})

#' And here is my first plot:

ggplot(mpg, aes(x = displ, y = hwy)) +
  geom_point() +
  labs(title = "My first R plot")
