Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [7s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(redist)
  Loading required package: redistmetrics
  
  Attaching package: 'redist'
  
  The following object is masked from 'package:stats':
  
      filter
  
  Warning message:
  In CPL_gdal_init() :
    GDAL Message 1: GDAL AVIF driver was built against libavif 1.2.1 but is running against 1.3.0. Runtime issues could occur
  > 
  > test_check("redist")
  
  -- redist_flip() ---------------------------------------------------------------
  
  -- Automated Redistricting Simulation Using Markov Chain Monte Carlo --
  
  i Preprocessing data.
  i Starting swMH().
  >------------------------------    1% | ETA: 1s
  ==============================>  100% | ETA:  0s | MH Acceptance: 0.80
  
  
  -- redist_flip() ---------------------------------------------------------------
  
  -- Automated Redistricting Simulation Using Markov Chain Monte Carlo --
  
  i Preprocessing data.
  i Starting swMH().
  
  -- redist_flip() ---------------------------------------------------------------
  
  -- Automated Redistricting Simulation Using Markov Chain Monte Carlo --
  
  i Preprocessing data.
  i Starting swMH().
  A <redist_plans> containing 927 sampled plans
  Plans matrix: int [1:25, 1:927] 1 2 2 2 2 1 1 3 1 3 ...
  # A tibble: 2,781 x 3
     draw  district total_pop
   * <fct>    <int>     <dbl>
   1 1            1     54487
   2 1            2     58845
   3 1            3     61711
   4 2            1     59971
   5 2            2     58845
   6 2            3     56227
   7 3            1     58863
   8 3            2     59953
   9 3            3     56227
  10 4            1     58025
  # i 2,771 more rows
  Plans have 3 districts from a 25-unit map, and were drawn using Enumpart.
  Plans matrix: int [1:25, 1:927] 1 2 2 2 2 1 1 3 1 3 ...
  # A tibble: 2,781 x 3
     draw  district total_pop
   * <fct>    <int>     <dbl>
   1 1            1     54487
   2 1            2     58845
   3 1            3     61711
   4 2            1     59971
   5 2            2     58845
   6 2            3     56227
   7 3            1     58863
   8 3            2     59953
   9 3            3     56227
  10 4            1     58025
  # i 2,771 more rows
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 94 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test_enumpart.R:2:1', 'test_ms.R:16:5'
  • On Linux (1): 'test_smc.R:2:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_burst.R:55:5'): short bursts work with multiple scorers ──────
  1 (`actual`) not equal to cor(attr(plans, "pareto_score"), method = "spearman")[1, 2] (`expected`).
  
    `actual`: 1.0
  `expected`:  NA
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 94 ]
  Error: Test failures
  Execution halted