R Under development (unstable) (2025-11-22 r89050 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(R4GoodPersonalFinances) Welcome to R4GoodPersonalFinances version 1.2.0! Cite the package: citation('R4GoodPersonalFinances') Package documentation: https://r4goodacademy.github.io/R4GoodPersonalFinances/ To learn more, visit: https://www.r4good.academy/ ... and Make Optimal Financial Decisions! > > test_check("R4GoodPersonalFinances") Starting 2 test processes. > test-simulate_scenario.R: > test-simulate_scenario.R: -- Simulating scenario: default > test-simulate_scenario.R: i Current date: 2020-07-15 > test-simulate_scenario.R: ! Caching is NOT enabled. > test-simulate_scenario.R: > Simulating scenario based on expected returns (sample_id == 0) > test-simulate_scenario.R: > test-simulate_scenario.R: -- Simulating scenario: default > test-simulate_scenario.R: i Current date: 2020-07-15 > test-simulate_scenario.R: i Generating random seeds for Monte Carlo samples > test-simulate_scenario.R: ! Caching is NOT enabled. > test-simulate_scenario.R: > Simulating scenario based on expected returns (sample_id == 0) > test-simulate_scenario.R: > Simulating 2 Monte Carlo samples > test-simulate_single_scenario.R: > Index year: 1/61. > test-simulate_single_scenario.R: > Index year: 2/61. > test-simulate_single_scenario.R: > Index year: 3/61. > test-simulate_single_scenario.R: > Index year: 4/61. > test-simulate_single_scenario.R: > Index year: 5/61. > test-simulate_single_scenario.R: > Index year: 6/61. > test-simulate_single_scenario.R: > Index year: 7/61. > test-simulate_single_scenario.R: > Index year: 8/61. > test-simulate_single_scenario.R: > Index year: 9/61. > test-simulate_single_scenario.R: > Index year: 10/61. > test-simulate_single_scenario.R: > Index year: 11/61. > test-simulate_single_scenario.R: > Index year: 12/61. > test-simulate_single_scenario.R: > Index year: 13/61. > test-simulate_single_scenario.R: > Index year: 14/61. > test-simulate_single_scenario.R: > Index year: 15/61. > test-simulate_single_scenario.R: > Index year: 16/61. > test-simulate_single_scenario.R: > Index year: 17/61. > test-simulate_single_scenario.R: > Index year: 18/61. > test-simulate_single_scenario.R: > Index year: 19/61. > test-simulate_single_scenario.R: > Index year: 20/61. > test-simulate_single_scenario.R: > Index year: 21/61. > test-simulate_single_scenario.R: > Index year: 22/61. > test-simulate_single_scenario.R: > Index year: 23/61. > test-simulate_single_scenario.R: > Index year: 24/61. > test-simulate_single_scenario.R: > Index year: 25/61. > test-simulate_single_scenario.R: > Index year: 26/61. > test-simulate_single_scenario.R: > Index year: 27/61. > test-simulate_single_scenario.R: > Index year: 28/61. > test-simulate_single_scenario.R: > Index year: 29/61. > test-simulate_single_scenario.R: > Index year: 30/61. > test-simulate_single_scenario.R: > Index year: 31/61. > test-simulate_single_scenario.R: > Index year: 32/61. > test-simulate_single_scenario.R: > Index year: 33/61. > test-simulate_single_scenario.R: > Index year: 34/61. > test-simulate_single_scenario.R: > Index year: 35/61. > test-simulate_single_scenario.R: > Index year: 36/61. > test-simulate_single_scenario.R: > Index year: 37/61. > test-simulate_single_scenario.R: > Index year: 38/61. > test-simulate_single_scenario.R: > Index year: 39/61. > test-simulate_single_scenario.R: > Index year: 40/61. > test-simulate_single_scenario.R: > Index year: 41/61. > test-simulate_single_scenario.R: > Index year: 42/61. > test-simulate_single_scenario.R: > Index year: 43/61. > test-simulate_single_scenario.R: > Index year: 44/61. > test-simulate_single_scenario.R: > Index year: 45/61. > test-simulate_single_scenario.R: > Index year: 46/61. > test-simulate_single_scenario.R: > Index year: 47/61. > test-simulate_single_scenario.R: > Index year: 48/61. > test-simulate_single_scenario.R: > Index year: 49/61. > test-simulate_single_scenario.R: > Index year: 50/61. > test-simulate_single_scenario.R: > Index year: 51/61. > test-simulate_single_scenario.R: > Index year: 52/61. > test-simulate_single_scenario.R: > Index year: 53/61. > test-simulate_single_scenario.R: > Index year: 54/61. > test-simulate_single_scenario.R: > Index year: 55/61. > test-simulate_single_scenario.R: > Index year: 56/61. > test-simulate_single_scenario.R: > Index year: 57/61. > test-simulate_single_scenario.R: > Index year: 58/61. > test-simulate_single_scenario.R: > Index year: 59/61. > test-simulate_single_scenario.R: > Index year: 60/61. > test-simulate_single_scenario.R: > Index year: 61/61. > test-simulate_single_scenario.R: ! Discretionary spending is infinite. Setting it to this period net-worth. > test-simulate_single_scenario.R: ! Optimal allocation not found. > test-simulate_single_scenario.R: ! Using optimal allocation from previous period (60). > test-calc_optimal_asset_allocation.R: > test-calc_optimal_asset_allocation.R: -- Simulating scenario: default > test-calc_optimal_asset_allocation.R: i Current date: 2020-07-15 > test-calc_optimal_asset_allocation.R: ! Caching is NOT enabled. > test-calc_optimal_asset_allocation.R: > Simulating scenario based on expected returns (sample_id == 0) [ FAIL 0 | WARN 0 | SKIP 49 | PASS 260 ] ══ Skipped tests (49) ══════════════════════════════════════════════════════════ • On CRAN (48): 'test-plot_expected_allocation.R:3:3', 'test-plot_expected_allocation.R:70:3', 'test-plot_expected_capital.R:3:3', 'test-plot_expected_spending.R:3:3', 'test-plot_future_income.R:3:3', 'test-plot_future_saving_rates.R:3:3', 'test-plot_future_saving_rates.R:61:3', 'test-plot_future_spending.R:3:3', 'test-plot_life_expectancy.R:3:3', 'test-plot_life_expectancy.R:19:3', 'test-plot_optimal_portfolio.R:3:3', 'test-plot_retirement_ruin.R:3:3', 'test-plot_purchasing_power.R:3:3', 'test-plot_purchasing_power.R:17:3', 'test-plot_purchasing_power.R:31:3', 'test-plot_purchasing_power.R:45:3', 'test-plot_risk_adjusted_returns.R:3:3', 'test-plot_risk_adjusted_returns.R:38:3', 'test-plot_scenarios.R:3:3', 'test-plot_scenarios.R:81:3', 'test-plot_survival.R:3:3', 'test-simulate_scenarios.R:3:3', 'test-simulate_scenario.R:108:3', 'test-simulate_scenario.R:194:3', 'test-simulate_scenario.R:277:3', 'test-HouseholdMember.R:47:1', 'test-HouseholdMember.R:66:1', 'test-simulate_single_scenario.R:84:1', 'test-simulate_single_scenario.R:125:1', 'test-simulate_single_scenario.R:185:3', 'test-calc_gompertz.R:35:1', 'test-calc_gompertz.R:69:1', 'test-calc_gompertz.R:103:1', 'test-calc_gompertz.R:126:1', 'test-calc_optimal_portfolio.R:25:3', 'test-calc_optimal_portfolio.R:52:3', 'test-calc_optimal_portfolio.R:78:3', 'test-calc_optimal_portfolio.R:104:3', 'test-calc_optimal_portfolio.R:161:3', 'test-calc_portfolio.R:113:1', 'test-calc_present_value.R:16:1', 'test-calc_risk_adjusted_return.R:38:1', 'test-create_portfolio_template.R:1:1', 'test-generate_random_returns.R:1:1', 'test-generate_household_timeline.R:114:1', 'test-utils.R:1:1', 'test-utils.R:22:1', 'test-utils.R:96:1' • interactive() is not TRUE (1): 'test-Household.R:369:3' [ FAIL 0 | WARN 0 | SKIP 49 | PASS 260 ] Deleting unused snapshots: 'plot_expected_allocation/ea-mc.svg', 'plot_expected_allocation/plot1.svg', 'plot_expected_allocation/plot2.svg', 'plot_expected_allocation/plot3.svg', 'plot_expected_capital/plot1.svg', 'plot_expected_spending/es1.svg', 'plot_expected_spending/es2.svg', 'plot_expected_spending/es3.svg', 'plot_future_income/plot1.svg', 'plot_future_income/plot2.svg', 'plot_future_saving_rates/fsrmc-mean.svg', 'plot_future_saving_rates/fsrmc-median.svg', 'plot_future_saving_rates/plot-fsr.svg', 'plot_future_saving_rates/plot-fsrmc.svg', 'plot_future_spending/plot1.svg', 'plot_future_spending/plot2.svg', 'plot_future_spending/plot3.svg', 'plot_future_spending/plot4.svg', …, 'simulate_scenario/plot1.svg', and 'simulate_scenario/plot2.svg' > > proc.time() user system elapsed 2.76 0.35 14.65