Running ‘testthat.R’ [11s/11s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(OptimalBinningWoE)
  > 
  > test_check("OptimalBinningWoE")
  Info: Initial number of bins (6) is already <= max_bins (6). Skipping merging phase.
  Info: Initial number of bins (3) is already <= max_bins (3). Skipping merging phase.
  Info: Number of unique categories (60) exceeds max_n_prebins (20). Pre-binning rare categories.
  Info: Pre-binning reduced categories from 60 to 60 initial bins.
  Info: Converged after 1 iterations (divergence change < threshold).
  Info: Number of unique categories (60) exceeds max_n_prebins (20). Pre-binning rare categories.
  Info: Pre-binning reduced categories from 60 to 60 initial bins.
  Info: Converged after 1 iterations (divergence change < threshold).
  Info: Number of unique categories (60) exceeds max_n_prebins (20). Pre-binning rare categories.
  Info: Pre-binning reduced categories from 60 to 60 initial bins.
  Info: Converged after 1 iterations (divergence change < threshold).
  Info: Number of unique categories (60) exceeds max_n_prebins (20). Pre-binning rare categories.
  Info: Pre-binning reduced categories from 60 to 60 initial bins.
  Info: Converged after 1 iterations (divergence change < threshold).
  Info: Number of unique categories (60) exceeds max_n_prebins (20). Pre-binning rare categories.
  Info: Pre-binning reduced categories from 60 to 60 initial bins.
  Info: Converged after 1 iterations (divergence change < threshold).
  Info: Number of unique categories (60) exceeds max_n_prebins (20). Pre-binning rare categories.
  Info: Pre-binning reduced categories from 60 to 60 initial bins.
  Info: Converged after 1 iterations (divergence change < threshold).
  2026-08-25 15:24:22.033 R[86214:464076] XType: Using static font registry.
  Saving _problems/test-obwoe-sql-567.R
  Info: Initial number of bins (5) is already <= max_bins (5). Skipping merging phase.
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  
  Attaching package: 'recipes'
  
  The following object is masked from 'package:stats':
  
      step
  
  
  -- Recipe ----------------------------------------------------------------------
  
  -- Inputs 
  Number of variables by role
  outcome:   1
  predictor: 1
  
  -- Operations 
  Optimal Binning WoE (age) [algorithm='tune()']
  [ FAIL 1 | WARN 3 | SKIP 1 | PASS 2034 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-audit-regressions.R:488:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-obwoe-sql.R:559:3'): multinomial models require an explicit class ──
  Expected `sql_eval_case_num(cases[["x_woe"]], df$x, "x")` to equal `...[]`.
  Differences:
    `actual[131:137]`: -0.010 -0.051 0.090 -0.010 -0.010 -0.010 -0.051
  `expected[131:137]`: -0.010 -0.051 0.090 -0.051 -0.010 -0.010 -0.051
  
  
  [ FAIL 1 | WARN 3 | SKIP 1 | PASS 2034 ]
  Error:
  ! Test failures.
  Execution halted