Running ‘testthat.R’ [26s/45s]
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 Under development (unstable) (2026-05-04 r89999)
  Platform: x86_64-pc-linux-gnu
  Running under: Debian GNU/Linux forky/sid
  
  Matrix products: default
  BLAS:   /home/hornik/tmp/R.check/r-devel-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-27 mvtnorm_1.3-7   libcoin_1.0-12  earth_5.3.5    
  [5] plotmo_3.7.0    plotrix_3.8-14  Formula_1.2-5   pre_1.0.8      
  [9] testthat_3.3.2 
  
  loaded via a namespace (and not attached):
   [1] cli_3.6.6          rlang_1.2.0        stringi_1.8.7      MatrixModels_0.5-4
   [5] glue_1.8.1         glmnet_5.0         brio_1.1.5         foreach_1.5.2     
   [9] lifecycle_1.0.5    stringr_1.6.0      compiler_4.7.0     codetools_0.2-20  
  [13] Rcpp_1.1.1-1.1     lattice_0.22-9     R6_2.6.1           splines_4.7.0     
  [17] inum_1.0-5         shape_1.4.6.1      magrittr_2.0.5     rpart_4.1.27      
  [21] Matrix_1.7-5       tools_4.7.0        iterators_1.0.14   survival_3.8-6    
  > 
  > test_check("pre")
  Saving _problems/tests_pre-198.R
  [ FAIL 1 | WARN 12 | SKIP 0 | PASS 131 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('tests_pre.R:198:5'): Get previous results with lung survival data ──
  Expected `fit` to equal `read_to_test("lung_w_pre_surv")`.
  Differences:
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Lengths: 720, 600
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "Dim": Mean relative difference: 0.1666667 >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "Dimnames": Component 2: Lengths (60, 50) differ (string compare on first 50) >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "i": Numeric: lengths (488, 370) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "p": Numeric: lengths (61, 51) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "x": Numeric: lengths (488, 370) differ >
  
  [ FAIL 1 | WARN 12 | SKIP 0 | PASS 131 ]
  Error:
  ! Test failures.
  Execution halted