- using R version 4.5.1 (2025-06-13)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-5) 14.3.0
GNU Fortran (Debian 14.3.0-5) 14.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘redist/DESCRIPTION’ ... OK
- this is package ‘redist’ version ‘4.3.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘redist’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘g++-14 (Debian 14.3.0-5) 14.3.0’
- checking C++ specification ... OK
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [2s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the package can be unloaded cleanly ... [2s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/3s] OK
- checking loading without being on the library search path ... [2s/3s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [30s/37s] OK
- checking Rd files ... [1s/2s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking include directives in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [26s/42s] OK
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
compare_plans 3.581 0.234 5.265
redist.identify.cores 3.426 0.004 5.205
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [10s/31s] ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [9s/30s]
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
>
> test_check("redist")
-- 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().
===>--------------------------- 10% | ETA: 0s | MH Acceptance: 0.00
==============================> 100% | ETA: 0s | MH Acceptance: 0.70
-- 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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [91s/123s] OK
- checking PDF version of manual ... [12s/17s] OK
- checking HTML version of manual ... [5s/8s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR