CRAN Package Check Results for Maintainer ‘Rachael C. Aikens <rockyaikens at gmail.com>’

Last updated on 2024-05-20 07:52:39 CEST.

Package ERROR OK
stratamatch 1 11

Package stratamatch

Current CRAN status: ERROR: 1, OK: 11

Version: 0.1.9
Check: tests
Result: ERROR Running ‘testthat.R’ [13s/15s] 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:326:3'): auto_stratify with prognostic formula + pilot_fraction works ── sort(unique(a.strat$analysis_set$stratum)) not equal to 1:4. Lengths differ: 2 is not 4 ── Failure ('test-auto_stratify.R:338:3'): auto_stratify with prognostic formula + pilot_fraction 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:338:3 2. └─testthat::expect_equal(dim(x), c(n_strat, 6)) at test-auto_stratify.R:13:3 ── Failure ('test-auto_stratify.R:339:3'): auto_stratify with prognostic formula + pilot_fraction 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:339: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-release-linux-x86_64