MazamaScience/RAWSmet

forceDownload = TRUE

Closed this issue · 0 comments

Both fw13_load() and wrcc_load() should accept a forceDownload = TRUE argument that will download, create and overwrite any existing data files in the rawsDataDir. This will allow users to update local files with potentially updated data.

The function signatures should now be:

fw13_load <- function(
  nwsID = NULL,
  meta = NULL,
  forceDownload = FALSE,
  baseUrl = "https://cefa.dri.edu/raws/fw13/",
  verbose = TRUE
) {

wrcc_load <- function(
  wrccID = NULL,
  meta = NULL,
  year = NULL,
  forceDownload = FALSE,
  baseUrl = "https://wrcc.dri.edu/cgi-bin/wea_list2.pl",
  verbose = TRUE
) {