| aemo_nemweb_download | R Documentation |
Thin wrapper over the internal cache-aware downloader.
aemo_nemweb_download(url, cache = TRUE)
url |
A fully-qualified NEMweb URL (zipped CSV). |
cache |
Logical. Reuse cached file if present. |
Path to the cached file.
Other low-level:
aemo_nemweb_ls()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.