* using log directory 'd:/Rcompile/CRANpkg/local/4.3/redist.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'redist/DESCRIPTION' ... OK * this is package 'redist' version '4.2.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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'redist' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 12.3.0' * checking C++ specification ... OK Not all R platforms support C++17 * checking installed package size ... NOTE installed size is 5.9Mb sub-directories of 1Mb or more: data 1.2Mb libs 2.0Mb * checking package directory ... 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [3s] OK * checking loading without being on the library search path ... [2s] 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 ... [23s] OK * checking Rd files ... [3s] OK * checking Rd metadata ... 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 ... [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 include directives in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [57s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [22s] ERROR Running 'spelling.R' [0s] Running 'testthat.R' [21s] 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(). >------------------------------ 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 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 * 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 * 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 6 | PASS 104 ] ══ Skipped tests (6) ═══════════════════════════════════════════════════════════ • On CRAN (5): 'test_enumpart.R:2:1', 'test_ms.R:16:5', 'test_smc.R:40:5', 'test_smc.R:56:5', 'test_smc.R:78:5' • On Windows (1): 'test_ms.R:31:5' ══ 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 `expected`: NA [ FAIL 1 | WARN 0 | SKIP 6 | PASS 104 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [109s] OK * checking PDF version of manual ... [23s] OK * checking HTML version of manual ... [22s] OK * DONE Status: 1 ERROR, 1 NOTE