Running ‘testthat.R’ [37s/112s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidystats)
  This version of tidystats uses a new and improved way of structuring statistics. This breaks previous versions of tidystats. Updates to other tidystats-related software are coming soon.
  > 
  > test_check("tidystats")
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 168 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_effectsize.R:67:3'): effectsize's Hedges' g works ──────────────
  Error in `cohens_d(x = mpg ~ am, data = mtcars, adjust = TRUE)`: could not find function "cohens_d"
  ── Error ('test_effectsize.R:76:3'): effectsize's Hedges' g not pooled works ───
  Error in `cohens_d(x = mpg ~ am, data = mtcars, pooled_sd = FALSE, adjust = TRUE)`: could not find function "cohens_d"
  ── Error ('test_effectsize.R:85:3'): effectsize's Hedges' g mu works ───────────
  Error in `cohens_d(x = mpg ~ am, data = mtcars, mu = -5, adjust = TRUE)`: could not find function "cohens_d"
  ── Error ('test_effectsize.R:94:3'): effectsize's Hedges' g less works ─────────
  Error in `cohens_d(x = mpg ~ am, data = mtcars, alternative = "less", adjust = TRUE)`: could not find function "cohens_d"
  ── Error ('test_effectsize.R:103:3'): effectsize's Hedges' g one sample works ──
  Error in `cohens_d(x = wt ~ 1, data = mtcars, adjust = TRUE)`: could not find function "cohens_d"
  ── Error ('test_effectsize.R:112:3'): effectsize's Hedges' g one sample works ──
  Error in `cohens_d(x = Pair(extra[group == 1], extra[group == 2]) ~ 1, 
      data = sleep, adjust = TRUE)`: could not find function "cohens_d"
  ── Failure ('test_effectsize.R:128:3'): effectsize's Glass's delta works ───────
  `tidy_model` not equal to `expected_tidy_model`.
  Component "statistics": Component 1: Component 3: Mean relative difference: 0.06844244
  Component "statistics": Component 1: Component 6: Mean relative difference: 0.06844259
  Component "statistics": Component 1: Component 7: Mean relative difference: 0.06844402
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$glass_delta) at test_effectsize.R:128:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_effectsize.R:137:3'): effectsize's Glass's delta mu works ────
  `tidy_model` not equal to `expected_tidy_model`.
  Component "statistics": Component 1: Component 3: Mean relative difference: 0.068443
  Component "statistics": Component 1: Component 6: Mean relative difference: 0.06844222
  Component "statistics": Component 1: Component 7: Mean relative difference: 0.06844404
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$glass_delta_mu) at test_effectsize.R:137:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_effectsize.R:149:3'): effectsize's Glass's delta less works ──
  `tidy_model` not equal to `expected_tidy_model`.
  Component "statistics": Component 1: Component 3: Mean relative difference: 0.06844244
  Component "statistics": Component 1: Component 7: Mean relative difference: 0.06844226
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$glass_delta_less) at test_effectsize.R:149:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 168 ]
  Error: Test failures
  Execution halted