Running ‘testthat.R’ [19s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(coursekata)
  Loading required package: dslabs
  Loading required package: Lock5withR
  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.15.0 ──
  ✔ dslabs              0.7.6       ✔ Metrics             0.1.4
  ✔ Lock5withR          1.2.2       ✔ lsr                 0.5.2
  x fivethirtyeightdata             ✔ mosaic              1.9.0
  x fivethirtyeight                 ✔ supernova           2.5.8
  > 
  > test_check("coursekata")
  [ FAIL 2 | WARN 0 | SKIP 32 | PASS 88 ]
  
  ══ Skipped tests (32) ══════════════════════════════════════════════════════════
  • Make sure to run this when testing locally. (1): 'test-utils-pkg.R:43:3'
  • On CRAN (26): 'test-gf_model.R:25:3', 'test-gf_model.R:44:5',
    'test-gf_model.R:65:3', 'test-gf_model.R:80:5', 'test-gf_model.R:148:5',
    'test-gf_model.R:293:3', 'test-gf_model.R:306:3', 'test-gf_model.R:319:3',
    'test-gf_model.R:325:3', 'test-gf_model.R:331:3', 'test-gf_model.R:337:3',
    'test-gf_model.R:343:3', 'test-gf_model.R:349:3', 'test-gf_model.R:359:3',
    'test-gf_model.R:365:3', 'test-gf_model.R:374:3', 'test-gf_model.R:380:3',
    'test-gf_model.R:386:3', 'test-gf_model.R:392:3', 'test-gf_model.R:411:3',
    'test-gf_model.R:417:3', 'test-gf_model.R:423:3', 'test-gf_model.R:429:3',
    'test-gf_model.R:435:3', 'test-gf_model.R:445:3', 'test-gf_model.R:457:3'
  • These have been visually checked to be correct on R-devel, but the vdiffr
    fails. (5): 'test-gf_model.R:121:3', 'test-gf_model.R:158:3',
    'test-gf_model.R:188:3', 'test-gf_model.R:220:3', 'test-gf_model.R:260:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-utils-pkg.R:7:5'): it determines whether a package is attached or not ──
  Package not available: fivethirtyeight
  ── Failure ('test-utils-pkg.R:17:3'): it determines whether a package is attached or not ──
  all(pkg_is_attached(pkgs)) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 2 | WARN 0 | SKIP 32 | PASS 88 ]
  Deleting unused snapshots:
  • gf_model/gf-boxplot-cond-mod-outcome-on-x-pred-on-color.svg
  • gf_model/gf-boxplot-cond-mod-outcome-on-x-pred-on-facet.svg
  • gf_model/gf-boxplot-cond-mod-outcome-on-y-pred-on-color.svg
  • gf_model/gf-boxplot-cond-mod-outcome-on-y-pred-on-facet.svg
  • gf_model/gf-boxplot-cond-mod-outcome-on-y.svg
  • gf_model/gf-boxplot-empty-model-outcome-on-x.svg
  • gf_model/gf-boxplot-empty-model-outcome-on-y.svg
  • gf_model/gf-dens-empty-model-outcome-on-x.svg
  • gf_model/gf-density-empty-model-outcome-on-x.svg
  • gf_model/gf-dhistogram-cond-mod-outcome-on-x-pred-on-color.svg
  • gf_model/gf-dhistogram-cond-mod-outcome-on-x-pred-on-facet.svg
  • gf_model/gf-dhistogram-empty-model-outcome-on-x.svg
  • gf_model/gf-freqpoly-empty-model-outcome-on-x.svg
  • gf_model/gf-histogram-cond-mod-outcome-on-x-pred-on-color.svg
  • gf_model/gf-histogram-cond-mod-outcome-on-x-pred-on-facet.svg
  • gf_model/gf-point-anx-mod-outcome-on-x.svg
  • gf_model/gf-point-anx-mod-pred-on-color-outcome-on-x.svg
  • gf_model/gf-point-cond-mod-outcome-on-x-pred-on-color.svg
  • gf_model/gf-point-cond-mod-outcome-on-x-pred-on-facet.svg
  • gf_model/gf-point-cond-mod-outcome-on-y-pred-on-color.svg
  • gf_model/gf-point-cond-mod-outcome-on-y-pred-on-facet.svg
  • gf_model/gf-point-cond-mod-outcome-on-y.svg
  • gf_model/gf-point-diverging-lines-in-different-facets-flipped.svg
  • gf_model/gf-point-diverging-lines-in-two-colors-flipped.svg
  • gf_model/gf-rug-cond-mod-outcome-on-x-pred-on-color.svg
  • gf_model/gf-rug-cond-mod-outcome-on-x-pred-on-facet.svg
  • gf_model/gf-rug-empty-model-outcome-on-x.svg
  • gf_model/gf-rugx-cond-mod-outcome-on-x-pred-on-color.svg
  • gf_model/gf-rugx-cond-mod-outcome-on-x-pred-on-facet.svg
  • gf_model/gf-rugx-empty-model-outcome-on-x.svg
  • gf_model/gf-rugy-cond-mod-outcome-on-y-pred-on-color.svg
  • gf_model/gf-rugy-cond-mod-outcome-on-y-pred-on-facet.svg
  • gf_model/gf-violin-cond-mod-outcome-on-x-pred-on-color.svg
  • gf_model/gf-violin-cond-mod-outcome-on-x-pred-on-facet.svg
  • gf_model/gf-violin-cond-mod-outcome-on-y-pred-on-color.svg
  • gf_model/gf-violin-cond-mod-outcome-on-y-pred-on-facet.svg
  • gf_model/gf-violin-cond-mod-outcome-on-y.svg
  • gf_model/gf-violin-empty-model-outcome-on-x-2.svg
  • gf_model/gf-violin-empty-model-outcome-on-y.svg
  • gf_model/gf-violin-horizontal-empty-model-outcome-on-x.svg
  Error: Test failures
  Execution halted