Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(aemo)
  > 
  > test_check("aemo")
  Removed 1 cached file from 'D:\temp\2026_04_30_01_50_01_32376\RtmpqI3kRc\aemo_cache_cc0836d858a7'.
  Saving _problems/test-dispatch-14.R
  i Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  x Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  
  i Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  x Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  
  i Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  x Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  
  i Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  x Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  
  i Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  x Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  
  i Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  x Downloading <https://nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM...
  
  Saving _problems/test-reference-26.R
  [ FAIL 2 | WARN 0 | SKIP 7 | PASS 168 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-demand.R:11:3', 'test-loss-factors.R:19:3',
    'test-loss-factors.R:31:3', 'test-pinned-values.R:26:3',
    'test-pinned-values.R:54:3', 'test-pinned-values.R:83:3', 'test-price.R:14:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-dispatch.R:10:3'): aemo_fcas_enablement errors on bad service name ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(aemo_request(url, timeout = 60))`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Could not resolve hostname [nemweb.com.au]:
  Could not resolve host: nemweb.com.au
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-dispatch.R:10:3
    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. └─aemo::aemo_fcas_enablement(start = now - 60, end = now, service = "notaservice")
    8.   └─aemo:::aemo_fetch_report_range(...)
    9.     └─aemo:::aemo_select_files_in_range(...)
   10.       └─aemo::aemo_nemweb_ls(path)
   11.         └─httr2::req_perform(aemo_request(url, timeout = 60))
   12.           └─httr2:::handle_resp(req, resp, error_call = error_call)
   13.             └─rlang::cnd_signal(resp)
  ── Error ('test-reference.R:26:3'): aemo_units returns the fallback table ──────
  Error in `aemo_units()`: Could not retrieve DUDETAILSUMMARY from MMSDM.
  i Retry when the MMSDM archive is reachable, or use `aemo_nemweb_download()` with an MMSDM URL directly.
  i No fallback is provided: a stale or invented DUID registry would silently mislabel historical analyses.
  Backtrace:
      ▆
   1. └─aemo::aemo_units() at test-reference.R:26:3
   2.   └─cli::cli_abort(...)
   3.     └─rlang::abort(...)
  
  [ FAIL 2 | WARN 0 | SKIP 7 | PASS 168 ]
  Error:
  ! Test failures.
  Execution halted