Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(lpdensity)
  > 
  > test_check("lpdensity")
  Saving _problems/test-numerical-baseline-66.R
  Saving _problems/test-numerical-baseline-76.R
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 15 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-numerical-baseline.R:66:5'): broad lpbwdensity cases match numerical baselines ──
  Expected `as.data.frame(observed)` to equal `case_expected`.
  Differences:
  actual vs expected
                   nh nhu
    actual[1, ]    88  88
    actual[2, ]   200 200
    actual[3, ]   200 200
  - actual[4, ]   199 199
  + expected[4, ] 200 200
    actual[5, ]    74  74
  
    `actual[[3]]`: 88.0 200.0 200.0 199.0 74.0
  `expected[[3]]`: 88.0 200.0 200.0 200.0 74.0
  
    `actual[[4]]`: 88.0 200.0 200.0 199.0 74.0
  `expected[[4]]`: 88.0 200.0 200.0 200.0 74.0
  
  bw_mse-dpi
  Backtrace:
      ▆
   1. └─lpdensity (local) expect_baseline_case(observed, expected, case_name, tolerance = 1e-06) at test-numerical-baseline.R:66:5
   2.   └─testthat::expect_equal(...) at test-numerical-baseline.R:17:3
  ── Failure ('test-numerical-baseline.R:76:5'): broad lpbwdensity cases match numerical baselines ──
  Expected `as.data.frame(observed)` to equal `case_expected`.
  Differences:
  actual vs expected
                   nh nhu
    actual[1, ]    60  60
    actual[2, ]   200 200
    actual[3, ]   200 200
  - actual[4, ]   199 199
  + expected[4, ] 200 200
    actual[5, ]    52  52
  
    `actual[[3]]`: 60.0 200.0 200.0 199.0 52.0
  `expected[[3]]`: 60.0 200.0 200.0 200.0 52.0
  
    `actual[[4]]`: 60.0 200.0 200.0 199.0 52.0
  `expected[[4]]`: 60.0 200.0 200.0 200.0 52.0
  
  weighted_bw_mse-dpi
  Backtrace:
      ▆
   1. └─lpdensity (local) expect_baseline_case(observed, expected, case_name, tolerance = 1e-06) at test-numerical-baseline.R:76:5
   2.   └─testthat::expect_equal(...) at test-numerical-baseline.R:17:3
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 15 ]
  Error:
  ! Test failures.
  Execution halted