Skip to content

Commit

Permalink
troubleshooting check errors
Browse files Browse the repository at this point in the history
update description and remove library calls within mods
  • Loading branch information
cristinamullin committed Jan 28, 2025
1 parent 5a3e8c5 commit 84565e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ Imports:
shinyjs,
gotop,
EPATADA,
golem
golem,
testthat
Remotes:
github::USEPA/EPATADA
Suggests:
Expand All @@ -51,7 +52,7 @@ Suggests:
stringr,
utils
Depends:
R (>= 3.5.0)
R (>= 3.5.0),
R (<= 4.4.1)
Encoding: UTF-8
Language: en-US
Expand Down
6 changes: 2 additions & 4 deletions R/mod_query_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ load("inst/extdata/statecodes_df.Rdata")
load("inst/extdata/query_choices.Rdata")

# new (2024-05-23) list for new Country/Ocean(s) Query the Water Quality Portal option. Not included in saved query_choices file
library(jsonlite)
library(dplyr)
countrycode_url <- 'https://www.waterqualitydata.us/Codes/countrycode?mimeType=json'
countryocean_source <- fromJSON(txt=countrycode_url)
countryocean_source <- countryocean_source$codes %>% select(-one_of('providers'))
countryocean_source <- jsonlite::fromJSON(txt=countrycode_url)
countryocean_source <- countryocean_source$codes %>% dplyr::select(-one_of('providers'))
countryocean_source <- countryocean_source[order(countryocean_source$desc),]
countryocean_choices <- countryocean_source$value
names(countryocean_choices) <- countryocean_source$desc
Expand Down

0 comments on commit 84565e4

Please sign in to comment.