R Under development (unstable) (2025-08-22 r88678 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. > library(testthat) > library(EconoTools) > > test_check("EconoTools") [ FAIL 1 | WARN 1 | SKIP 0 | PASS 5 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-calculations.R:37:5'): calculate_sma handles errors ──────────── Error: Not enough observations to calculate a moving average of size n. Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-calculations.R:37:5 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─EconoTools::calculate_sma(test_data_short, n = 5) [ FAIL 1 | WARN 1 | SKIP 0 | PASS 5 ] Error: Test failures Execution halted