Last updated on 2026-01-09 09:50:54 CET.
| Package | ERROR | OK |
|---|---|---|
| hetu | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 1.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(hetu)
> test_check("hetu")
Saving _problems/test_hetu-123.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 65 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_hetu.R:123:3'): rbid() works correctly ─────────────────────────
Error in `sample.int(length(x), size, replace, prob)`: invalid first argument
Backtrace:
▆
1. ├─testthat::expect_equal(length(rbid(3)), 3) at test_hetu.R:123:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─hetu::rbid(3)
5. └─base::sample(bids, size = n, replace = TRUE)
6. └─base::sample.int(length(x), size, replace, prob)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 65 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-linux-x86_64