if (FALSE) { # interactive()
# parse the short forecast for Western Australia
# download to tempfile() using basename() to keep original name
utils::download.file(url = "ftp://ftp.bom.gov.au/anon/gen/fwo/IDQ11295.xml",
destfile = file.path(tempdir(),
basename("ftp://ftp.bom.gov.au/anon/gen/fwo/IDQ11295.xml")),
mode = "wb")
parse_precis_forecast(state = "QLD", filepath = tempdir())
}
Run the code above in your browser using DataLab