Running ‘testthat.R’ [31s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(yardstick)
  For binary classification, the first factor level is assumed to be the event.
  Set the global option `yardstick.event_first` to `FALSE` to change this.
  
  > 
  > test_check("yardstick")
  ── 1. Failure: Three class (@test-class-accuracy.R#10)  ────────────────────────
  accuracy(three_class, truth = "obs", estimate = "pred")[[".estimate"]] not equal to (24 + 17 + 14)/150.
  1/1 mismatches
  [1] 0.373 - 0.367 == 0.00667
  
  ── 2. Failure: Three class (@test-class-accuracy.R#14)  ────────────────────────
  accuracy(three_class_tb)[[".estimate"]] not equal to (24 + 17 + 14)/150.
  1/1 mismatches
  [1] 0.373 - 0.367 == 0.00667
  
  ── 3. Failure: Three class (@test-class-accuracy.R#18)  ────────────────────────
  accuracy(as.matrix(three_class_tb))[[".estimate"]] not equal to (24 + 17 + 14)/150.
  1/1 mismatches
  [1] 0.373 - 0.367 == 0.00667
  
  ── 4. Failure: Three class (@test-class-accuracy.R#22)  ────────────────────────
  accuracy(three_class, obs, pred_na)[[".estimate"]] not equal to (11 + 10 + 11)/140.
  1/1 mismatches
  [1] 0.364 - 0.229 == 0.136
  
  ── 5. Failure: Three class (@test-class-kap.R#13)  ─────────────────────────────
  kap(three_class, truth = "obs", estimate = "pred")[[".estimate"]] not equal to 0.05.
  1/1 mismatches
  [1] 0.06 - 0.05 == 0.01
  
  ── 6. Failure: Three class (@test-class-kap.R#17)  ─────────────────────────────
  kap(three_class_tb)[[".estimate"]] not equal to 0.05.
  1/1 mismatches
  [1] 0.06 - 0.05 == 0.01
  
  ── 7. Failure: Three class (@test-class-kap.R#21)  ─────────────────────────────
  kap(as.matrix(three_class_tb))[[".estimate"]] not equal to 0.05.
  1/1 mismatches
  [1] 0.06 - 0.05 == 0.01
  
  ── 8. Failure: Three class (@test-class-kap.R#25)  ─────────────────────────────
  kap(three_class, obs, pred_na)[[".estimate"]] not equal to -0.1570248.
  1/1 mismatches
  [1] 0.0458 - -0.157 == 0.203
  
  ── 9. Failure: Gain Curve - two class, with resamples (@test_autoplot.R#182)  ──
  .plot_data$data[[2]]$x[2] not equal to 43 + 2/3.
  1/1 mismatches
  [1] 45.7 - 43.7 == 2
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 356 SKIPPED: 0 FAILED: 9
  1. Failure: Three class (@test-class-accuracy.R#10) 
  2. Failure: Three class (@test-class-accuracy.R#14) 
  3. Failure: Three class (@test-class-accuracy.R#18) 
  4. Failure: Three class (@test-class-accuracy.R#22) 
  5. Failure: Three class (@test-class-kap.R#13) 
  6. Failure: Three class (@test-class-kap.R#17) 
  7. Failure: Three class (@test-class-kap.R#21) 
  8. Failure: Three class (@test-class-kap.R#25) 
  9. Failure: Gain Curve - two class, with resamples (@test_autoplot.R#182) 
  
  Error: testthat unit tests failed
  Execution halted