Running ‘testthat.R’ [29s/59s]
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
  Loading required package: TeachingDemos
  > library(partykit)
  Loading required package: grid
  Loading required package: libcoin
  Loading required package: mvtnorm
  > print(sessionInfo())
  R Under development (unstable) (2023-02-11 r83799)
  Platform: x86_64-pc-linux-gnu (64-bit)
  Running under: Debian GNU/Linux bookworm/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.11.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-16    mvtnorm_1.1-3      libcoin_1.0-9      earth_5.3.2       
   [5] plotmo_3.6.2       TeachingDemos_2.12 plotrix_3.8-2      Formula_1.2-4     
   [9] pre_1.0.5          testthat_3.1.6    
  
  loaded via a namespace (and not attached):
   [1] cli_3.6.0          rlang_1.0.6        stringi_1.7.12     MatrixModels_0.5-1
   [5] glue_1.6.2         glmnet_4.1-6       brio_1.1.3         lifecycle_1.0.3   
   [9] foreach_1.5.2      stringr_1.5.0      compiler_4.3.0     codetools_0.2-19  
  [13] Rcpp_1.0.10        lattice_0.20-45    R6_2.5.1           splines_4.3.0     
  [17] inum_1.0-4         shape_1.4.6        magrittr_2.0.3     rpart_4.1.19      
  [21] Matrix_1.5-3       tools_4.3.0        iterators_1.0.14   survival_3.5-0    
  > 
  > test_check("pre")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 121 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_gpe.R:167'): gpe_trees gives previous results for binary outcomes ──
  Error in `predictor + offset`: non-numeric argument to binary operator
  Backtrace:
       ▆
    1. ├─base::do.call(func, args) at test_gpe.R:167:2
    2. └─pre (local) `<fn>`(...)
    3.   ├─stats::predict(tree, newdata = data, type = "link")
    4.   └─partykit:::predict.glmtree(tree, newdata = data, type = "link")
    5.     └─partykit::predict.modelparty(...)
    6.       └─base::lapply(...)
    7.         └─partykit (local) FUN(X[[i]], ...)
    8.           └─partykit (local) pred(mod[[i]], newdata = newdata[ix[[i]], , drop = FALSE], ...)
    9.             ├─stats::predict(object, newdata = newdata, type = type, ...)
   10.             └─stats::predict.glm(object, newdata = newdata, type = type, ...)
   11.               └─stats::predict.lm(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 121 ]
  Error: Test failures
  Execution halted