Thin wrapper over the internal cache-aware downloader.
See also
Other low-level:
aemo_nemweb_ls()
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)
}
})
#> ℹ Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D…
#> ✔ Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D…
#>
#> [1] TRUE
options(op)
# }