tests/testthat/test-forecasts.R

test_that("aemo_predispatch validates horizon", {
  expect_error(aemo_predispatch("NSW1", horizon = "annual"))
})

test_that("aemo_pasa validates horizon", {
  expect_error(aemo_pasa(horizon = "long"))
})

test_that("aemo_pasa validates region when provided", {
  expect_error(aemo_pasa(horizon = "short", region = "XYZ"))
})

Try the aemo package in your browser

Any scripts or data that you put into this service are public.

aemo documentation built on April 29, 2026, 1:07 a.m.