Running 'spelling.R' [0s/1s]
  Running 'testthat.R' [144s/155s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(evaluator)
  > 
  > # ensure phantom.js is available on CI platforms
  > if (Sys.getenv("NOT_CRAN", "") != "" || Sys.getenv("CI", "") != "") {
  +   if (!shinytest::dependenciesInstalled()) shinytest:::installDependencies()
  +   message("Using phantom.js from ", shinytest:::find_phantom(), "\n")
  + }
  > 
  > test_check("evaluator")
  -- 1. Error: SR model works as expected (@test-openfair.R#220)  ----------------
  Scenario must be a tidyrisk_scenario object
  Backtrace:
   1. evaluator::run_simulation(scenario[[1, "scenario"]], 100L)
  
  -- 2. Error: Simulation respects maximum ALE (@test-simulate.R#21)  ------------
  Scenario must be a tidyrisk_scenario object
  Backtrace:
   1. evaluator::run_simulation(good_scen, 10L, ale_maximum = 100)
  
  -- 3. Failure: Missing mandatory OpenFAIR factors are detected (@test-simulate.R
  `run_simulation(bad_scen, 10L)` threw an error with unexpected message.
  Expected match: "Missing"
  Actual message: "Scenario must be a tidyrisk_scenario object"
  Backtrace:
   1. testthat::expect_error(run_simulation(bad_scen, 10L), regexp = "Missing")
   6. evaluator::run_simulation(bad_scen, 10L)
  
  -- 4. Failure: Bad scenario parameters throw an error (@test-simulate.R#36)  ---
  `run_simulation(bad_scen, 10L)` threw an error with unexpected message.
  Expected match: "Error"
  Actual message: "Scenario must be a tidyrisk_scenario object"
  Backtrace:
   1. testthat::expect_error(run_simulation(bad_scen, 10L), regexp = "Error")
   6. evaluator::run_simulation(bad_scen, 10L)
  
  -- 5. Failure: Multiple simulations deprecates the simulation_count parameters (
  `run_simulations(good_scen, simulation_count = 10L)` threw an error with unexpected message.
  Expected match: "iteration"
  Actual message: "All scenarios must be tidyrisk_scenario objects"
  Backtrace:
   1. testthat::expect_error(...)
   6. evaluator::run_simulations(good_scen, simulation_count = 10L)
  
  -- 6. Error: Simulation summary handles NAs for tc/diff exceedance (@test-summar
  [[ ]] improper number of subscripts
  
  # Scenario model: openfair_tef_tc_diff_lm
  == testthat results  ===========================================================
  [ OK: 128 | SKIPPED: 4 | WARNINGS: 12 | FAILED: 6 ]
  1. Error: SR model works as expected (@test-openfair.R#220) 
  2. Error: Simulation respects maximum ALE (@test-simulate.R#21) 
  3. Failure: Missing mandatory OpenFAIR factors are detected (@test-simulate.R#29) 
  4. Failure: Bad scenario parameters throw an error (@test-simulate.R#36) 
  5. Failure: Multiple simulations deprecates the simulation_count parameters (@test-simulate.R#56) 
  6. Error: Simulation summary handles NAs for tc/diff exceedance (@test-summarize.R#17) 
  
  Error: testthat unit tests failed
  Execution halted