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)
}
})
#> Error in aemo_nemweb_ls("/Reports/Current/DispatchIS_Reports/") :
#> NEMweb returned HTTP 403 for
#> <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/>.
options(op)
# }