Running ‘testthat.R’ [3s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pre)
  > 
  > #####
  > # partykit and earth is loaded as failures of tests may be caused by the version
  > # of either package. Thus, we print the sessionInfo
  > 
  > library(earth)
  Loading required package: Formula
  Loading required package: plotmo
  Loading required package: plotrix
  > library(partykit)
  Loading required package: grid
  Loading required package: libcoin
  Loading required package: mvtnorm
  > print(sessionInfo())
  R version 4.6.1 Patched (2026-08-03 r90350)
  Platform: x86_64-pc-linux-gnu
  Running under: Debian GNU/Linux forky/sid
  
  Matrix products: default
  BLAS:   /home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib/libRblas.so 
  LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.1;  LAPACK version 3.12.0
  
  locale:
   [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8       
   [4] LC_COLLATE=C           LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8   
   [7] LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C          
  [10] LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   
  
  time zone: Europe/Vienna
  tzcode source: system (glibc)
  
  attached base packages:
  [1] grid      stats     graphics  grDevices utils     datasets  methods  
  [8] base     
  
  other attached packages:
  [1] partykit_1.2-29 mvtnorm_1.4-2   libcoin_1.0-13  earth_5.3.5    
  [5] plotmo_3.7.0    plotrix_3.8-14  Formula_1.2-6   pre_1.0.9      
  [9] testthat_3.3.2 
  
  loaded via a namespace (and not attached):
   [1] cli_3.6.6          rlang_1.3.0        stringi_1.8.9      otel_0.2.0        
   [5] MatrixModels_0.5-4 glue_1.8.1         glmnet_5.0         brio_1.1.5        
   [9] foreach_1.5.2      lifecycle_1.0.5    stringr_1.6.0      compiler_4.6.1    
  [13] codetools_0.2-20   Rcpp_1.1.2         lattice_0.22-9     R6_2.6.1          
  [17] splines_4.6.1      inum_1.0-5         shape_1.4.6.1      magrittr_2.0.5    
  [21] rpart_4.1.27       Matrix_1.7-6       tools_4.6.1        iterators_1.0.14  
  [25] survival_3.8-9    
  > 
  > test_check("pre")
  Error in `source_dir()`:
  ! Failed to evaluate './helper.R'.
  Caused by error:
  ! object 'PimaIndiansDiabetes' not found
  Backtrace:
       ▆
    1. ├─testthat::test_check("pre")
    2. │ └─testthat::test_dir(...)
    3. │   └─testthat:::test_files(...)
    4. │     └─testthat:::test_files_serial(...)
    5. │       └─testthat:::test_files_setup_state(...)
    6. │         └─testthat::source_test_helpers(".", env)
    7. │           └─testthat::source_dir(path, "^helper.*\\.[rR]$", env = env, wrap = FALSE)
    8. │             └─base::lapply(...)
    9. │               └─testthat (local) FUN(X[[i]], ...)
   10. │                 └─testthat::source_file(...)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. └─base::.handleSimpleError(...) at ./helper.R:76:1
   15.   └─testthat (local) h(simpleError(msg, call))
   16.     └─cli::cli_abort(...)
   17.       └─rlang::abort(...)
  Warning message:
  In data(PimaIndiansDiabetes, package = "mlbench", envir = environment()) :
    data set 'PimaIndiansDiabetes' not found
  Execution halted