Skip to content

Commit

Permalink
deprecating check parameter and will remove in next release
Browse files Browse the repository at this point in the history
closes #116
  • Loading branch information
rabutler-usbr committed Oct 12, 2023
1 parent 67f51fe commit 5102ee4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Fixed documentation for `get_prism_normals()` to reference the new period (1991-2020). (#111)
* Updated error message in `get_prism_dailys()` if a date before Jan. 1, 1981 is provided.
* Added `service` parameter to `get_prism_dailys()`, `get_prism_monthlys()`, and `get_prism_annual()`, so user can provide subscription based URLs, instead of default public available 4km data. (@adamlilith)
* Deprecated `check` parameter in `get_prism_dailys()` as it does not exist in monthly or annual functions. (#116)

# prism 0.2.0

Expand Down
7 changes: 7 additions & 0 deletions R/get_prism_dailys.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ get_prism_dailys <- function(type, minDate = NULL, maxDate = NULL,
service = NULL)
{
prism_check_dl_dir()

if (!missing(check)) {
warning(paste('You provided the `check` argument.',
' This argument will be removed in the next release of prism.',
sep = '\n'))
}

check <- match.arg(check, c("httr", "internal"))
dates <- gen_dates(minDate = minDate, maxDate = maxDate, dates = dates)

Expand Down

0 comments on commit 5102ee4

Please sign in to comment.