- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘BuyseTest/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘BuyseTest’ version ‘3.3.4’
- 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 whether package ‘BuyseTest’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘Debian clang version 21.1.7 (1)’
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ 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 ... [4s/5s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the package can be unloaded cleanly ... [4s/5s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s/6s] OK
- checking whether the namespace can be unloaded cleanly ... [5s/6s] OK
- checking loading without being on the library search path ... [4s/7s] OK
- checking whether startup messages can be suppressed ... [4s/5s] 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 ... [63s/78s] OK
- checking Rd files ... [1s/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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [27s/32s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [108s/80s] ERROR
Running ‘testthat.R’ [108s/79s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> ## * load packages
> library(testthat)
> library(BuyseTest)
Loading required package: Rcpp
BuyseTest version 3.3.4
>
> library(lava)
Attaching package: 'lava'
The following object is masked from 'package:testthat':
compare
> library(data.table)
Attaching package: 'data.table'
The following object is masked from 'package:base':
%notin%
> library(survival)
Attaching package: 'survival'
The following object is masked from 'package:BuyseTest':
brier
> xx <- capture.output(print(veteran))
> library(riskRegression)
riskRegression version 2025.09.17
> library(prodlim)
> library(mvtnorm)
>
> ## * run tests
> ## setwd("~/Documents/GitHub/BuyseTest/tests/")
> ## source("~/Documents/GitHub/BuyseTest/tests/testthat/test-BuyseTest-engine.R")
> test_check("BuyseTest")
Saving _problems/test-BuysePower-92.R
Saving _problems/test-BuysePower-132.R
Saving _problems/test-BuysePower-174.R
Saving _problems/test-BuyseTTEM-34.R
Saving _problems/test-BuyseTest-standardization-184.R
Saving _problems/test-BuyseTest-standardization-212.R
[ FAIL 6 | WARN 0 | SKIP 2 | PASS 1157 ]
══ Skipped tests (2) ═══════════════════════════════════════════════════════════
• empty test (2): 'test-BuyseTest-previousBug.R:554:1',
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-BuysePower.R:92:9'): 1 tte endpoint - Gehan ────────────────────
Error in ``[.data.table`(d, , `:=`(id, 1:.N), by = "treatment")`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. ├─d[, `:=`(id, 1:.N), by = "treatment"] at test-BuysePower.R:92:9
2. └─data.table:::`[.data.table`(d, , `:=`(id, 1:.N), by = "treatment") at test-BuysePower.R:92:9
── Error ('test-BuysePower.R:132:9'): 1 tte endpoint - Peron ───────────────────
Error in ``[.data.table`(d, , `:=`(id, 1:.N), by = "treatment")`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. ├─d[, `:=`(id, 1:.N), by = "treatment"] at test-BuysePower.R:132:9
2. └─data.table:::`[.data.table`(d, , `:=`(id, 1:.N), by = "treatment") at test-BuysePower.R:132:9
── Error ('test-BuysePower.R:174:9'): Multiple endpoints ───────────────────────
Error in ``[.data.table`(d, , `:=`(id, 1:.N), by = "treatment")`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. ├─d[, `:=`(id, 1:.N), by = "treatment"] at test-BuysePower.R:174:9
2. └─data.table:::`[.data.table`(d, , `:=`(id, 1:.N), by = "treatment") at test-BuysePower.R:174:9
── Error ('test-BuyseTTEM.R:34:1'): (code run outside of `test_that()`) ────────
Error in ``[.data.table`(dt, , `:=`(last, eventtime == max(eventtime)), by = c("treatment", "toxicity"))`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. ├─...[] at test-BuyseTTEM.R:34:1
2. └─data.table:::`[.data.table`(...) at test-BuyseTTEM.R:34:1
── Error ('test-BuyseTest-standardization.R:184:5'): BuyseTest - standarization (second order, binary outcome, balanced) ──
Error in ``[.data.table`(mytable, , `:=`(m.X, length(unique(index.0))), by = "strata")`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. ├─mytable[, `:=`(m.X, length(unique(index.0))), by = "strata"] at test-BuyseTest-standardization.R:184:5
2. └─data.table:::`[.data.table`(...) at test-BuyseTest-standardization.R:184:5
── Error ('test-BuyseTest-standardization.R:212:5'): BuyseTest - standarization (second order, binary outcome, unbalanced) ──
Error in ``[.data.table`(mytableUB, , `:=`(m.X, length(unique(index.0))), by = "strata")`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. ├─mytableUB[, `:=`(m.X, length(unique(index.0))), by = "strata"] at test-BuyseTest-standardization.R:212:5
2. └─data.table:::`[.data.table`(...) at test-BuyseTest-standardization.R:212:5
[ FAIL 6 | WARN 0 | SKIP 2 | PASS 1157 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [2s/3s] OK
- checking PDF version of manual ... [8s/10s] OK
- checking HTML version of manual ... [8s/12s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR