Running ‘test-all.R’ [169s/213s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library(testthat)
  +   library(smerc)
  +   test_check("smerc")
  + } else {
  +   message("tests could not be run because testthat is not installed")
  + }
  # This research was partially supported under NSF grants 1463642 and 1915277
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  Saving _problems/test-precog.test-25.R
  Saving _problems/test-precog.test-26.R
  Saving _problems/test-precog.test-27.R
  Saving _problems/test-precog.test-28.R
  Saving _problems/test-precog.test-29.R
  Saving _problems/test-precog.test-32.R
  Saving _problems/test-precog.test-33.R
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 612 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-precog.test.R:25:3'): check accuracy for precog.test with neast ──
  Expected `out$clusters[[1]]$locids` to equal `cl1`.
  Differences:
  Lengths differ: 13 is not 20
  ── Failure ('test-precog.test.R:26:3'): check accuracy for precog.test with neast ──
  Expected `round(out$clusters[[1]]$r, 2)` to equal 22412.31.
  Differences:
  1/1 mismatches
  [1] 17898 - 22412 == -4514
  ── Failure ('test-precog.test.R:27:3'): check accuracy for precog.test with neast ──
  Expected `out$clusters[[1]]$pop` to equal 5504246.
  Differences:
  1/1 mismatches
  [1] 4814093 - 5504246 == -690153
  ── Failure ('test-precog.test.R:28:3'): check accuracy for precog.test with neast ──
  Expected `out$clusters[[1]]$cases` to equal 12646.
  Differences:
  1/1 mismatches
  [1] 11076 - 12646 == -1570
  ── Failure ('test-precog.test.R:29:3'): check accuracy for precog.test with neast ──
  Expected `round(out$clusters[[1]]$exp, 2)` to equal 10984.75.
  Differences:
  1/1 mismatches
  [1] 9607 - 10985 == -1377
  ── Failure ('test-precog.test.R:32:3'): check accuracy for precog.test with neast ──
  Expected `round(out$clusters[[1]]$loglik, 4)` to equal 148.8356.
  Differences:
  1/1 mismatches
  [1] 129 - 149 == -19.8
  ── Failure ('test-precog.test.R:33:3'): check accuracy for precog.test with neast ──
  Expected `round(out$clusters[[1]]$test_statistic, 4)` to equal 148.8356.
  Differences:
  1/1 mismatches
  [1] 129 - 149 == -19.8
  
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 612 ]
  Error:
  ! Test failures.
  Execution halted