* using log directory ‘/srv/hornik/tmp/CRAN_pretest/creditools.Rcheck’ * using R Under development (unstable) (2026-03-13 r89618) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 21.1.8 (3+b1) Debian flang version 21.1.8 (3+b1) * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * current time: 2026-03-14 23:13:10 UTC * checking for file ‘creditools/DESCRIPTION’ ... OK * this is package ‘creditools’ version ‘0.5.1’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [3s/4s] NOTE Maintainer: ‘Matheus Pasche ’ New submission * 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 serialization versions ... OK * checking whether package ‘creditools’ can be installed ... [14s/14s] OK * used C++ compiler: ‘Debian clang version 21.1.8 (3+b1)’ * 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 ... [1s/1s] OK * checking whether the package can be loaded with stated dependencies ... [1s/1s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/1s] 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 ... [6s/6s] OK * checking Rd files ... [0s/0s] NOTE checkRd: (-1) generate_sample_data.Rd:65: Escaped LaTeX specials: \$ * 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 LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [5s/5s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [6s/13s] ERROR Running ‘testthat.R’ [6s/13s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(creditools) > > test_check("creditools") i Generating realistic sample data for 1000 applicants... v Generating realistic sample data for 1000 applicants... ... done v All simulations complete. i No stress_scenarios defined in `credit_policy`. Applying neutral stress (1.0x) to 'swap-in' applicants. -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 3) i Simulating stage 1: filt1 i Simulating stage 2: cut1 i Simulating stage 3: rate1 v Multi-stage simulation completed for 100 applicants. -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 3) i Simulating stage 1: filt1 i Simulating stage 2: cut1 i Simulating stage 3: rate1 v Multi-stage simulation completed for 100 applicants. -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 2) i Simulating stage 1: conv1 i Simulating stage 2: conv2 v Multi-stage simulation completed for 100 applicants. -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 1) i Simulating stage 1: complex_rule v Multi-stage simulation completed for 100 applicants. i Generating realistic sample data for 1000 applicants... v Generating realistic sample data for 1000 applicants... ... done -- Creditools: Analytical Simulation from Flat Data ---------------------------- i 1. Simulating Challenger Policy (Cutoff = 500)... i 2. Extracting Real-World Implied Conversion Rates... i 3. Computing Ward Risk Clustering on Challenger Population... i Optimizing risk clusters via Rcpp engine... -- 4. Applying 1.3x Stress Aggravation by Risk Rating to Swap-Ins... -- v Simulation complete! Check the $summary output. -- Credit Simulation Policy ---------------------------------------------------- * Applicant ID: ID * Score Columns: s1 and s2 * Current Approval: a * Actual Default: d * 0 simulation stage(s) defined * 0 stress scenario(s) defined i Optimizing risk clusters via Rcpp engine... i Evaluating 5 cutoff combinations... -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 1) i Simulating stage 1: optimization_credit v Multi-stage simulation completed for 100 applicants. -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 1) i Simulating stage 1: optimization_credit v Multi-stage simulation completed for 100 applicants. -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 1) i Simulating stage 1: optimization_credit v Multi-stage simulation completed for 100 applicants. -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 1) i Simulating stage 1: optimization_credit v Multi-stage simulation completed for 100 applicants. -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 1) i Simulating stage 1: optimization_credit v Multi-stage simulation completed for 100 applicants. i Generating realistic sample data for 200 applicants... v Generating realistic sample data for 200 applicants... ... done Saving _problems/test-parallel-36.R i Evaluating 3 cutoff combinations... -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 1) i Simulating stage 1: optimization_credit v Multi-stage simulation completed for 200 applicants. -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 1) i Simulating stage 1: optimization_credit v Multi-stage simulation completed for 200 applicants. -- Creditools: Multi-Stage Credit Policy Simulation ---------------------------- i Simulating funnel stages (n = 1) i Simulating stage 1: optimization_credit v Multi-stage simulation completed for 200 applicants. ! No cutoff combinations satisfied the provided constraints. Returning the best-effort result based on the tradeoff score. i Evaluating 3 cutoff combinations... Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: 100% Progress: ───────────────────── 100% Progress: ───────────────────── 100% Progress: ───────────────────── 100% Progress: ────────────────────────────────────────── 100% Progress: ────────────────────────────────────────── 100% Progress: ────────────────────────────────────────── 100% Progress: ────────────────────────────────────────── 100% Progress: ────────────────────────────────────────── 100% Progress: ────────────────────────────────────────── 100% Progress: ──────────────────────────────────────────────────────────────── 100% Progress: ──────────────────────────────────────────────────────────────── 100% Progress: ──────────────────────────────────────────────────────────────── 100% ── Creditools: Multi-Stage Credit Policy Simulation ──────────────────────────── ℹ Simulating funnel stages (n = 1) ℹ Simulating stage 1: optimization_credit ℹ No stress_scenarios defined in `credit_policy`. Applying neutral stress (1.0x) to 'swap-in' applicants. ✔ Multi-stage simulation completed for 200 applicants. ── Creditools: Multi-Stage Credit Policy Simulation ──────────────────────────── ℹ Simulating funnel stages (n = 1) ℹ Simulating stage 1: optimization_credit ℹ No stress_scenarios defined in `credit_policy`. Applying neutral stress (1.0x) to 'swap-in' applicants. ✔ Multi-stage simulation completed for 200 applicants. ── Creditools: Multi-Stage Credit Policy Simulation ──────────────────────────── ℹ Simulating funnel stages (n = 1) ℹ Simulating stage 1: optimization_credit ✔ Multi-stage simulation completed for 200 applicants. ! No cutoff combinations satisfied the provided constraints. Returning the best-effort result based on the tradeoff score. ℹ No stress_scenarios defined in `credit_policy`. Applying neutral stress (1.0x) to 'swap-in' applicants. ℹ No stress_scenarios defined in `credit_policy`. Applying neutral stress (1.0x) to 'swap-in' applicants. ℹ No stress_scenarios defined in `credit_policy`. Applying neutral stress (1.0x) to 'swap-in' applicants. ℹ No stress_scenarios defined in `credit_policy`. Applying neutral stress (1.0x) to 'swap-in' applicants. i Generating realistic sample data for 100 applicants... v Generating realistic sample data for 100 applicants... ... done i Generating realistic sample data for 50 applicants... v Generating realistic sample data for 50 applicants... ... done i Generating realistic sample data for 50 applicants... v Generating realistic sample data for 50 applicants... ... done i Generating realistic sample data for 50000 applicants... v Generating realistic sample data for 50000 applicants... ... done i Generating realistic sample data for 20000 applicants... v Generating realistic sample data for 20000 applicants... ... done 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 i Generating realistic sample data for 1000 applicants... v Generating realistic sample data for 1000 applicants... ... done -- Creditools: Stochastic Simulation from Flat Data ---------------------------- i 1. Simulating Challenger Policy (Cutoff = 600)... i 2. Extracting Real-World Implied Conversion Rates... i 3. Computing Ward Risk Clustering on Challenger Population... i Optimizing risk clusters via Rcpp engine... -- 4. Applying 1.3x Stress Aggravation by Risk Rating to Swap-Ins... -- v Simulation complete! Check the $summary output. [ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-parallel.R:26:5'): Parallel processing in find_pairwise_risk_groups works and is consistent ── Error in `.check_ncores(cores)`: 31 simultaneous processes spawned Backtrace: ▆ 1. └─creditools::find_pairwise_risk_groups(...) at test-parallel.R:26:5 2. └─parallel::mclapply(...) 3. └─parallel:::.check_ncores(cores) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [22s/22s] OK * checking PDF version of manual ... [4s/4s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 2 NOTEs