* using log directory 'd:/Rcompile/CRANpkg/local/4.7/aemo.Rcheck'
* using R Under development (unstable) (2026-04-29 r89977 ucrt)
* using platform: x86_64-w64-mingw32
* R was compiled by
    gcc.exe (GCC) 14.3.0
    GNU Fortran (GCC) 14.3.0
* running under: Windows Server 2022 x64 (build 20348)
* using session charset: UTF-8
* current time: 2026-04-30 00:00:55 UTC
* checking for file 'aemo/DESCRIPTION' ... OK
* this is package 'aemo' version '0.4.0'
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'aemo' can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking 'build' directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking code files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... [0s] OK
* checking whether the package can be loaded with stated dependencies ... [0s] OK
* checking whether the package can be unloaded cleanly ... [0s] OK
* checking whether the namespace can be loaded with stated dependencies ... [0s] OK
* checking whether the namespace can be unloaded cleanly ... [1s] OK
* checking loading without being on the library search path ... [0s] OK
* checking use of S3 registration ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... [5s] OK
* checking Rd files ... [1s] OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking installed files from 'inst/doc' ... OK
* checking files in 'vignettes' ... OK
* checking examples ... [2s] OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ... [7s] ERROR
  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
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking re-building of vignette outputs ... [4s] OK
* checking PDF version of manual ... [31s] OK
* checking HTML version of manual ... [10s] OK
* DONE
Status: 1 ERROR
