# NOT RUN {
# parse the short forecast for Queensland
# download to tempfile() using basename() to keep original name
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")
BOM_forecast <- parse_precis_forecast(state = "QLD",
filepath = tempdir())
BOM_forecast
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab