R Under development (unstable) (2026-01-21 r89314 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(DepMod) > > test_check("DepMod") Saving _problems/test-run_model-2.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 2 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-run_model.R:2:3'): run_model returns base and alt results ────── Error in `array(NA_real_, dim = c(sim_runs, 2), dimnames = list(Run = 1:1000, Outcome = c("Cost", "QALYs")))`: length of 'dimnames' [1] not equal to array extent Backtrace: ▆ 1. └─DepMod::run_model(sim_runs = 1, total_population = 100) at test-run_model.R:2:3 2. └─DepMod:::fun_sim_model(...) 3. └─base::array(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 2 ] Error: ! Test failures. Execution halted