% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nemweb.R
\name{aemo_nemweb_download}
\alias{aemo_nemweb_download}
\title{Download a NEMweb zipped CSV to the local cache}
\usage{
aemo_nemweb_download(url, cache = TRUE)
}
\arguments{
\item{url}{A fully-qualified NEMweb URL (zipped CSV).}

\item{cache}{Logical. Reuse cached file if present.}
}
\value{
Path to the cached file.
}
\description{
Thin wrapper over the internal cache-aware downloader.
}
\examples{
\donttest{
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)
}
}
\seealso{
Other low-level: 
\code{\link{aemo_nemweb_ls}()}
}
\concept{low-level}
