diff --git a/DESCRIPTION b/DESCRIPTION index ca6038f..c5d4262 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: tidyhydat Title: Extract and Tidy Canadian 'Hydrometric' Data -Version: 0.7.1 +Version: 0.7.1.9000 Authors@R: c(person("Sam", "Albers", email = "sam.albers@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-9270-7884")), person("David", "Hutchinson", email = "david.hutchinson@canada.ca", role = "ctb"), diff --git a/NEWS.md b/NEWS.md index d5810e3..86e244e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +# tidyhydat 0.7.1.9000 +- fixed a bug where `param_id` internal data wasnt' being accessed correctly (#224) + # tidyhydat 0.7.1 - add columns added by a webservice update (#213) - fix some partial matching in `realtime_add_local_datetime` internals diff --git a/R/realtime-webservice.R b/R/realtime-webservice.R index f3b7441..cf02573 100755 --- a/R/realtime-webservice.R +++ b/R/realtime-webservice.R @@ -70,14 +70,14 @@ realtime_ws <- function( ) { if (is.null(parameters)) parameters <- c(46, 16, 52, 47, 8, 5, 41, 18) - if (any(!parameters %in% param_id$Parameter)) { + if (any(!parameters %in% tidyhydat::param_id$Parameter)) { stop( paste0( paste0( parameters[!parameters %in% tidyhydat::param_id$Parameter], collapse = "," ), - " are invalid parameters. Check param_id for a list of valid options." + " are invalid parameters. Check tidyhydat::param_id for a list of valid options." ), call. = FALSE )