Running ‘testthat.R’ [51s/52s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(coursekata)
  Loading required package: dslabs
  Loading required package: fivethirtyeight
  Some larger datasets need to be installed separately, like senators and
  house_district_forecast. To install these, we recommend you install the
  fivethirtyeightdata package by running:
  install.packages('fivethirtyeightdata', repos =
  'https://fivethirtyeightdata.github.io/drat/', type = 'source')
  Loading required package: Metrics
  Loading required package: lsr
  Loading required package: mosaic
  
  The 'mosaic' package masks several functions from core packages in order to add 
  additional features.  The original behavior of these functions should not be affected by this.
  
  Attaching package: 'mosaic'
  
  The following objects are masked from 'package:dplyr':
  
      count, do, tally
  
  The following object is masked from 'package:Matrix':
  
      mean
  
  The following object is masked from 'package:ggplot2':
  
      stat
  
  The following object is masked from 'package:testthat':
  
      compare
  
  The following objects are masked from 'package:stats':
  
      IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
      quantile, sd, t.test, var
  
  The following objects are masked from 'package:base':
  
      max, mean, min, prod, range, sample, sum
  
  Loading required package: supernova
  ── CourseKata packages ──────────────────────────────────── coursekata 0.19.0 ──
  ✔ dslabs              0.8.0       ✔ Metrics             0.1.4
  x Lock5withR                      ✔ lsr                 0.5.2
  x fivethirtyeightdata             ✔ mosaic              1.9.2
  ✔ fivethirtyeight     0.6.2       ✔ supernova           3.0.0
  
  Attaching package: 'coursekata'
  
  The following object is masked from 'package:datasets':
  
      penguins
  
  > 
  > test_check("coursekata")
  Starting 2 test processes
  [ FAIL 1 | WARN 0 | SKIP 30 | PASS 89 ]
  
  ══ Skipped tests (30) ══════════════════════════════════════════════════════════
  • On CRAN (30): 'test-gf_model-visual.R:6:3', 'test-gf_model-visual.R:27:5',
    'test-gf_model-visual.R:46:3', 'test-gf_model-visual.R:63:5',
    'test-gf_model-visual.R:107:5', 'test-gf_model-visual.R:123:5',
    'test-gf_model-visual.R:144:5', 'test-gf_model-visual.R:171:5',
    'test-gf_model-visual.R:201:5', 'test-gf_model-visual.R:239:5',
    'test-gf_model-visual.R:261:3', 'test-gf_model-visual.R:276:3',
    'test-gf_model-visual.R:291:3', 'test-gf_model-visual.R:299:3',
    'test-gf_model-visual.R:307:3', 'test-gf_model-visual.R:315:3',
    'test-gf_model-visual.R:323:3', 'test-gf_model-visual.R:331:3',
    'test-gf_model-visual.R:343:3', 'test-gf_model-visual.R:351:3',
    'test-gf_model-visual.R:362:3', 'test-gf_model-visual.R:370:3',
    'test-gf_model-visual.R:378:3', 'test-gf_model-visual.R:386:3',
    'test-gf_model-visual.R:407:3', 'test-gf_model-visual.R:415:3',
    'test-gf_model-visual.R:431:3', 'test-gf_model-visual.R:439:3',
    'test-gf_model-visual.R:451:3', 'test-gf_model-visual.R:465:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-gf_model-visual.R:423:3'): it will translate color arguments if applicable (e.g. fill to color) ──
  Error in `position_dodge(orientation = NA)`: `orientation` must be a string or character vector.
  Backtrace:
       ▆
    1. ├─... %>% ... at test-gf_model-visual.R:423:3
    2. ├─coursekata:::expect_doppelganger(., "[gf_point] cond. mod., y on Y, with color")
    3. │ └─vdiffr::expect_doppelganger(title, fig, ...) at tests/testthat/helper-vdiffr.R:5:5
    4. │   └─vdiffr (local) writer(fig, testcase, title)
    5. │     └─vdiffr:::print_plot(plot, title)
    6. ├─coursekata::gf_model(., lm(later_anxiety ~ condition, data = er))
    7. ├─ggformula::gf_boxplot(...)
    8. │ ├─base::do.call(position_fun, pdots)
    9. │ └─ggplot2::position_dodge(orientation = NA)
   10. │   ├─ggplot2::ggproto(...)
   11. │   │ └─rlang::list2(...)
   12. │   └─rlang::arg_match0(orientation, c("x", "y"))
   13. └─rlang::abort(message = message, call = call)
  
  [ FAIL 1 | WARN 0 | SKIP 30 | PASS 89 ]
  Deleting unused snapshots:
  • gf_model-visual/gf-boxplot-cond-mod-y-on-x-pred-on-color.svg
  • gf_model-visual/gf-boxplot-cond-mod-y-on-x-pred-on-facet.svg
  • gf_model-visual/gf-boxplot-cond-mod-y-on-y-pred-on-color.svg
  • gf_model-visual/gf-boxplot-cond-mod-y-on-y-pred-on-facet.svg
  • gf_model-visual/gf-boxplot-cond-mod-y-on-y.svg
  • gf_model-visual/gf-boxplot-null-mod-y-on-x.svg
  • gf_model-visual/gf-boxplot-null-mod-y-on-y.svg
  • gf_model-visual/gf-dens-null-mod-y-on-x.svg
  • gf_model-visual/gf-density-null-mod-y-on-x.svg
  • gf_model-visual/gf-dhistogram-cond-mod-y-on-x-pred-on-color.svg
  • gf_model-visual/gf-dhistogram-cond-mod-y-on-x-pred-on-facet.svg
  • gf_model-visual/gf-dhistogram-null-mod-y-on-x.svg
  • gf_model-visual/gf-freqpoly-null-mod-y-on-x.svg
  • gf_model-visual/gf-histogram-cond-mod-y-on-x-pred-on-color.svg
  • gf_model-visual/gf-histogram-cond-mod-y-on-x-pred-on-facet.svg
  • gf_model-visual/gf-point-anx-mod-pred-on-color-y-on-x.svg
  • gf_model-visual/gf-point-anx-mod-y-on-x.svg
  • gf_model-visual/gf-point-diverging-lines-in-2-colors-flipped.svg
  • gf_model-visual/gf-point-diverging-lines-in-facets-flipped.svg
  • gf_model-visual/gf-rug-cond-mod-y-on-x-pred-on-color.svg
  • gf_model-visual/gf-rug-cond-mod-y-on-x-pred-on-facet.svg
  • gf_model-visual/gf-rug-null-mod-y-on-x.svg
  • gf_model-visual/gf-rugx-cond-mod-y-on-x-pred-on-color.svg
  • gf_model-visual/gf-rugx-cond-mod-y-on-x-pred-on-facet.svg
  • gf_model-visual/gf-rugx-null-mod-y-on-x.svg
  • gf_model-visual/gf-rugy-cond-mod-y-on-y-pred-on-color.svg
  • gf_model-visual/gf-rugy-cond-mod-y-on-y-pred-on-facet.svg
  • gf_model-visual/gf-violin-cond-mod-y-on-x-pred-on-color.svg
  • gf_model-visual/gf-violin-cond-mod-y-on-x-pred-on-facet.svg
  • gf_model-visual/gf-violin-cond-mod-y-on-y-pred-on-color.svg
  • gf_model-visual/gf-violin-cond-mod-y-on-y-pred-on-facet.svg
  • gf_model-visual/gf-violin-cond-mod-y-on-y.svg
  • gf_model-visual/gf-violin-horizontal-null-mod-y-on-x.svg
  • gf_model-visual/gf-violin-null-mod-y-on-x-2.svg
  • gf_model-visual/gf-violin-null-mod-y-on-y.svg
  Error: Test failures
  Execution halted