- using R Under development (unstable) (2026-02-22 r89452)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-13) 15.2.0
GNU Fortran (Debian 15.2.0-13) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-02-23 14:03:22 UTC
- checking for file ‘basksim/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘basksim’ version ‘2.0.2’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘basksim’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [7s/9s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [18s/21s] ERROR
Running examples in ‘basksim-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_evaluation.bhm
> ### Title: Evaluate a BHM Basket Trial
> ### Aliases: get_evaluation.bhm
>
> ### ** Examples
>
> design <- setup_bhm(k = 3, p0 = 0.2, p_target = 0.5)
>
> get_evaluation(design = design, n = c(20, 20, 20), r = c(10, 15, 5),
+ lambda = 0.95, tau_scale = 1, iter = 100)
Error in est[, 1] : incorrect number of dimensions
Calls: get_evaluation -> get_evaluation.bhm -> unname
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [123s/140s] ERROR
Running ‘testthat.R’ [123s/140s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(basksim)
>
> test_check("basksim")
Saving _problems/test-get_details-31.R
Saving _problems/test-get_details-109.R
Saving _problems/test-get_evaluation-6.R
Saving _problems/test-get_evaluation-10.R
Saving _problems/test-get_evaluation-28.R
Saving _problems/test-get_evaluation-32.R
[ FAIL 6 | WARN 0 | SKIP 13 | PASS 228 ]
══ Skipped tests (13) ══════════════════════════════════════════════════════════
• On CRAN (13): 'test-adjust_lambda.R:15:3', 'test-adjust_lambda.R:73:3',
'test-adjust_lambda.R:119:3', 'test-get_details.R:11:3',
'test-get_details.R:203:3', 'test-get_details.R:234:5',
'test-get_details.R:297:3', 'test-get_details.R:335:3',
'test-get_details.R:383:3', 'test-get_details.R:420:3',
'test-get_details.R:460:3', 'test-get_details.R:486:3',
'test-opt_design.R:19:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-get_details.R:30:3'): get_details works for bhm ────────────────
Error in `est[, 1]`: incorrect number of dimensions
Backtrace:
▆
1. ├─basksim::get_details(...) at test-get_details.R:30:3
2. └─basksim:::get_details.bhm(...)
3. └─base::unname(est[, 1])
── Error ('test-get_details.R:108:3'): get_details works for exnex ─────────────
Error in `est[, 1]`: incorrect number of dimensions
Backtrace:
▆
1. ├─basksim::get_details(...) at test-get_details.R:108:3
2. └─basksim:::get_details.exnex(...)
3. └─base::unname(est[, 1])
── Failure ('test-get_evaluation.R:5:3'): get_evaluation works for bhm ─────────
Expected `get_evaluation(...)` not to throw any errors.
Actually got a <simpleError> with message:
incorrect number of dimensions
── Failure ('test-get_evaluation.R:9:3'): get_evaluation works for bhm ─────────
Expected `get_evaluation(...)` not to throw any errors.
Actually got a <simpleError> with message:
incorrect number of dimensions
── Failure ('test-get_evaluation.R:27:3'): get_evaluation works for exnex ──────
Expected `get_evaluation(...)` not to throw any errors.
Actually got a <simpleError> with message:
incorrect number of dimensions
── Failure ('test-get_evaluation.R:31:3'): get_evaluation works for exnex ──────
Expected `get_evaluation(...)` not to throw any errors.
Actually got a <simpleError> with message:
incorrect number of dimensions
[ FAIL 6 | WARN 0 | SKIP 13 | PASS 228 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [5s/6s] OK
- checking HTML version of manual ... [3s/4s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs