aemo_nemweb_download: Download a NEMweb zipped CSV to the local cache

View source: R/nemweb.R

aemo_nemweb_downloadR Documentation

Download a NEMweb zipped CSV to the local cache

Description

Thin wrapper over the internal cache-aware downloader.

Usage

aemo_nemweb_download(url, cache = TRUE)

Arguments

url

A fully-qualified NEMweb URL (zipped CSV).

cache

Logical. Reuse cached file if present.

Value

Path to the cached file.

See Also

Other low-level: aemo_nemweb_ls()

Examples


op <- options(aemo.cache_dir = tempdir())
try({
  files <- aemo_nemweb_ls("/Reports/Current/DispatchIS_Reports/")
  if (nrow(files) > 0) {
    f <- aemo_nemweb_download(files$url[1])
    file.exists(f)
  }
})
options(op)


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