Running ‘testthat.R’ [216s/124s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(gkwdist)
  > 
  > test_check("gkwdist")
  Saving _problems/test-mle-performance-264.R
  Saving _problems/test-mle-performance-264.R
  Saving _problems/test-mle-performance-264.R
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 339 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-mle-performance.R:264:7'): Optimization efficiency for family: kw ──
  Expected kw_cfg1 : Analytical gradient too slow <= `bench_result$none$mean_time * 2`.
  Actual comparison: 0.073 > 0.006
  Difference: 0.068 > 0
  Backtrace:
      ▆
   1. └─gkwdist (local) expect_efficiency_gain(bench, paste0(fam, "_cfg", cfg)) at test-mle-performance.R:264:7
   2.   └─testthat::expect_lte(...) at test-mle-performance.R:232:5
  ── Failure ('test-mle-performance.R:264:7'): Optimization efficiency for family: kw ──
  Expected kw_cfg5 : Analytical gradient too slow <= `bench_result$none$mean_time * 2`.
  Actual comparison: 0.066 > 0.006
  Difference: 0.060 > 0
  Backtrace:
      ▆
   1. └─gkwdist (local) expect_efficiency_gain(bench, paste0(fam, "_cfg", cfg)) at test-mle-performance.R:264:7
   2.   └─testthat::expect_lte(...) at test-mle-performance.R:232:5
  ── Failure ('test-mle-performance.R:264:7'): Optimization efficiency for family: bkw ──
  Expected bkw_cfg1 : Analytical gradient too slow <= `bench_result$none$mean_time * 2`.
  Actual comparison: 0.099 > 0.079
  Difference: 0.020 > 0
  Backtrace:
      ▆
   1. └─gkwdist (local) expect_efficiency_gain(bench, paste0(fam, "_cfg", cfg)) at test-mle-performance.R:264:7
   2.   └─testthat::expect_lte(...) at test-mle-performance.R:232:5
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 339 ]
  Error:
  ! Test failures.
  Execution halted