# NOT RUN {
# parse the coastal forecast for Queensland
#download to tempfile() using basename() to keep original name
download.file(url = "ftp://ftp.bom.gov.au/anon/gen/fwo/IDQ11290.xml",
destfile = file.path(tempdir(),
basename("ftp://ftp.bom.gov.au/anon/gen/fwo/IDQ11290.xml")),
mode = "wb")
coastal_forecast <- parse_coastal_forecast(state = "QLD",
filepath = tempdir())
coastal_forecast
# }
Run the code above in your browser using DataCamp Workspace