Running 'spelling.R' [0s]
  Running 'testthat.R' [27s]
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(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)
  > test-generate_household_timeline.R: 
  
  Error:
  ! testthat subprocess exited in file
    'test-generate_household_timeline.R'.
  Caused by error:
  ! R session crashed with exit code -1073741819
  Backtrace:
       ▆
    1. └─testthat::test_check("R4GoodPersonalFinances")
    2.   └─testthat::test_dir(...)
    3.     └─testthat:::test_files(...)
    4.       └─testthat:::test_files_parallel(...)
    5.         ├─withr::with_dir(...)
    6.         │ └─base::force(code)
    7.         ├─testthat::with_reporter(...)
    8.         │ └─base::tryCatch(...)
    9.         │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.         │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.         │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   12.         └─testthat:::parallel_event_loop_chunky(queue, reporters, ".")
   13.           └─queue$poll(Inf)
   14.             └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─cli::cli_abort(...)
   18.                     └─rlang::abort(...)
  Execution halted