Last updated on 2025-04-21 14:50:01 CEST.
Package | ERROR | OK |
---|---|---|
stratamatch | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 0.1.9
Check: tests
Result: ERROR
Running ‘testthat.R’ [10s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(stratamatch)
>
> test_check("stratamatch")
[ FAIL 3 | WARN 11 | SKIP 0 | PASS 281 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-auto_stratify.R:465:3'): auto_stratify with logical outcome works ──
sort(unique(a.strat$analysis_set$stratum)) not equal to 1:4.
Lengths differ: 2 is not 4
── Failure ('test-auto_stratify.R:477:3'): auto_stratify with logical outcome works ──
dim(x) not equal to c(n_strat, 6).
1/2 mismatches
[1] 2 - 4 == -2
Backtrace:
▆
1. └─stratamatch (local) expect_issue_table_ok(...) at test-auto_stratify.R:477:3
2. └─testthat::expect_equal(dim(x), c(n_strat, 6)) at test-auto_stratify.R:13:3
── Failure ('test-auto_stratify.R:478:3'): auto_stratify with logical outcome works ──
dim(x) not equal to c(n_strat, 3).
1/2 mismatches
[1] 2 - 4 == -2
Backtrace:
▆
1. └─stratamatch (local) expect_strata_table_ok(...) at test-auto_stratify.R:478:3
2. └─testthat::expect_equal(dim(x), c(n_strat, 3)) at test-auto_stratify.R:36:3
[ FAIL 3 | WARN 11 | SKIP 0 | PASS 281 ]
Error: Test failures
Execution halted
Flavor: r-patched-linux-x86_64