Skip to content

Commit

Permalink
fix siteInfo bug on list arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ldecicco-USGS committed Dec 3, 2024
1 parent 13ab814 commit 46860bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/readWQPdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,10 @@ readWQPdata <- function(...,

attr(retval, "legacy") <- legacy

if (!all(is.na(retval)) && !ignore_attributes) {
params <- list(...)
if (!all(is.na(retval)) &&
!ignore_attributes &&
!service %in% c("Station", "StationWQX")) {
params <- convertLists(...)
params <- params[!names(params) %in% c("dataProfile", "service")]
retval <- create_WQP_attributes(retval, params)
}
Expand Down

0 comments on commit 46860bc

Please sign in to comment.