Skip to content

Commit

Permalink
load the testthat library
Browse files Browse the repository at this point in the history
  • Loading branch information
chendaniely committed Dec 7, 2024
1 parent 8441f7a commit fab67b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions book/lectures/143-observability-of-code-outputs.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ cars_ggplot_scatter$mapping$x
And so we could write some tests for a function that created a `ggplot2` object like so:

```{r}
library(testthat)
#' scatter2d
#'
#' A short-cut function for creating 2 dimensional scatterplots via ggplot2.
Expand Down

0 comments on commit fab67b4

Please sign in to comment.