R Under development (unstable) (2026-03-13 r89618 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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 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 0 | WARN 0 | SKIP 5 | PASS 80 ] ══ Skipped tests (5) ═══════════════════════════════════════════════════════════ • On Windows (5): 'test-parallel.R:7:5', 'test-parallel.R:46:5', 'test-parallel.R:78:5', 'test-parallel.R:117:5', 'test-parallel.R:146:5' [ FAIL 0 | WARN 0 | SKIP 5 | PASS 80 ] > > proc.time() user system elapsed 4.14 0.34 6.34