R/utils.R

Defines functions pagasa_download_cyclone_reports

# Download PAGASA cyclone reports ----------------------------------------------

pagasa_download_cyclone_reports <- function(url, destfile) {
  if (!destfile %in% list.files("data-raw", full.names = TRUE)) {
    utils::download.file(url = url, destfile = destfile)
    destfile
  } else
    destfile
}

Try the bagyo package in your browser

Any scripts or data that you put into this service are public.

bagyo documentation built on Jan. 19, 2026, 5:07 p.m.