- using R Under development (unstable) (2026-08-31 r90457 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
* current time: 2026-09-01 23:30:06 UTC
- checking for file 'spmixW/DESCRIPTION' ... OK
- this is package 'spmixW' version '0.2.2'
- 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 'spmixW' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package 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] 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 ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] 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 ... [13s] OK
- checking Rd files ... [1s] 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 examples ... [4s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [10m] ERROR
Running 'testthat.R' [10m]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(spmixW)
>
> test_check("spmixW")
Saving _problems/test-spatial_utils-44.R
Saving _problems/test-spatial_utils-57.R
Saving _problems/test-spatial_utils-68.R
Saving _problems/test-tidy_interface-22.R
Saving _problems/test-tidy_interface-49.R
Saving _problems/test-tidy_interface-69.R
Saving _problems/test-tidy_interface-87.R
Saving _problems/test-tidy_interface-105.R
Saving _problems/test-tidy_interface-118.R
Saving _problems/test-tidy_interface-135.R
Saving _problems/test-tidy_interface-152.R
Saving _problems/test-tidy_interface-177.R
[ FAIL 12 | WARN 23 | SKIP 0 | PASS 199 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-spatial_utils.R:44:3'): make_knw returns correct dimensions and row sums ──
Error in `make_knw(coords, k)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW::make_knw(coords, k) at test-spatial_utils.R:44:3
── Error ('test-spatial_utils.R:57:3'): make_knw has exactly k non-zero entries per row before normalisation ──
Error in `make_knw(coords, k, row_normalise = FALSE)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW::make_knw(coords, k, row_normalise = FALSE) at test-spatial_utils.R:57:3
── Error ('test-spatial_utils.R:68:3'): make_knw diagonal is zero (no self-neighbours) ──
Error in `make_knw(coords, k = 3)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW::make_knw(coords, k = 3) at test-spatial_utils.R:68:3
── Error ('test-tidy_interface.R:22:3'): spmodel() formula produces same results as matrix API ──
Error in `make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW (local) .make_W(N, seed = 111) at test-tidy_interface.R:22:3
2. ├─base::as.matrix(...) at test-tidy_interface.R:14:3
3. ├─spmixW::normw(make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE))
4. │ └─Matrix::Matrix(W, sparse = TRUE)
5. └─spmixW::make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)
── Error ('test-tidy_interface.R:49:3'): spmodel() auto-sorts data correctly ───
Error in `make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW (local) .make_W(N, seed = 222) at test-tidy_interface.R:49:3
2. ├─base::as.matrix(...) at test-tidy_interface.R:14:3
3. ├─spmixW::normw(make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE))
4. │ └─Matrix::Matrix(W, sparse = TRUE)
5. └─spmixW::make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)
── Error ('test-tidy_interface.R:69:3'): spmodel() detects unbalanced panel ────
Error in `make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW (local) .make_W(N, seed = 333) at test-tidy_interface.R:69:3
2. ├─base::as.matrix(...) at test-tidy_interface.R:14:3
3. ├─spmixW::normw(make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE))
4. │ └─Matrix::Matrix(W, sparse = TRUE)
5. └─spmixW::make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)
── Error ('test-tidy_interface.R:87:3'): spmodel() cross-sectional auto-detection (no time column) ──
Error in `make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW (local) .make_W(N, seed = 444) at test-tidy_interface.R:87:3
2. ├─base::as.matrix(...) at test-tidy_interface.R:14:3
3. ├─spmixW::normw(make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE))
4. │ └─Matrix::Matrix(W, sparse = TRUE)
5. └─spmixW::make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)
── Error ('test-tidy_interface.R:105:3'): effects mapping: 'twoway' == model=3 ──
Error in `make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW (local) .make_W(N, seed = 555) at test-tidy_interface.R:105:3
2. ├─base::as.matrix(...) at test-tidy_interface.R:14:3
3. ├─spmixW::normw(make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE))
4. │ └─Matrix::Matrix(W, sparse = TRUE)
5. └─spmixW::make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)
── Error ('test-tidy_interface.R:118:3'): list W dispatches to convex combination ──
Error in `make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW (local) .make_W(N, k = 4, seed = 661) at test-tidy_interface.R:118:3
2. ├─base::as.matrix(...) at test-tidy_interface.R:14:3
3. ├─spmixW::normw(make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE))
4. │ └─Matrix::Matrix(W, sparse = TRUE)
5. └─spmixW::make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)
── Error ('test-tidy_interface.R:135:3'): compare_models() returns correct structure ──
Error in `make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW (local) .make_W(N, seed = 777) at test-tidy_interface.R:135:3
2. ├─base::as.matrix(...) at test-tidy_interface.R:14:3
3. ├─spmixW::normw(make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE))
4. │ └─Matrix::Matrix(W, sparse = TRUE)
5. └─spmixW::make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)
── Error ('test-tidy_interface.R:152:3'): tidy.spmixW returns correct structure ──
Error in `make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW (local) .make_W(N, seed = 888) at test-tidy_interface.R:152:3
2. ├─base::as.matrix(...) at test-tidy_interface.R:14:3
3. ├─spmixW::normw(make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE))
4. │ └─Matrix::Matrix(W, sparse = TRUE)
5. └─spmixW::make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)
── Error ('test-tidy_interface.R:177:3'): glance.spmixW returns one-row data frame ──
Error in `make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)`: lazy-load database 'D:/temp/2026_09_01_01_50_00_22259/Rtmp8epvZj/RLIBS_25cd84e91709/Matrix/R/Matrix.rdb' is corrupt
Backtrace:
▆
1. └─spmixW (local) .make_W(N, seed = 999) at test-tidy_interface.R:177:3
2. ├─base::as.matrix(...) at test-tidy_interface.R:14:3
3. ├─spmixW::normw(make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE))
4. │ └─Matrix::Matrix(W, sparse = TRUE)
5. └─spmixW::make_knw(cbind(runif(N), runif(N)), k = k, row_normalise = FALSE)
[ FAIL 12 | WARN 23 | SKIP 0 | PASS 199 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [3s] OK
- DONE
Status: 1 ERROR