You need to reload packages (and data) in every chapter, unlike in our previous Bookdown setups.

Code
library(pacman)
p_load(downlit)

devtools::install_github("rethinkpriorities/rp-r-package")
library(rethinkpriorities)

devtools::install_github("rethinkpriorities/r-noodling-package")
library(rnoodling)

2.1 Air Quality

Figure 2.1 further explores the impact of temperature on ozone level.

Code
library(pacman)
p_load(ggplot2)
library(ggplot2)

ggplot(airquality, aes(Temp, Ozone)) +
  geom_point() +
  geom_smooth(method = "loess"
)

Figure 2.1: Temperature and ozone level.

Is the object from the previous chapter still there?

Code
xtest
Error in eval(expr, envir, enclos): object 'xtest' not found
Code
I'm a bug -- will it halt??
Error: <text>:1:2: unexpected INCOMPLETE_STRING
1: I'm a bug -- will it halt??
     ^