Skip to content

Commit

Permalink
seriesExtent (vector): quiet sf::st_read() output
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Feb 12, 2024
1 parent b88f122 commit b494124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/seriesExtent.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ seriesExtent <- function(s, type = c('vector', 'raster'), timeout = 60,
# base URL to cached data
u <- URLencode(paste0('http://casoilresource.lawr.ucdavis.edu/series-extent-cache/json/', s, '.json'))

res <- .soilDB_curl_get_JSON(u, gzip = FALSE, FUN = sf::st_read, quiet = TRUE)
res <- .soilDB_curl_get_JSON(u, gzip = FALSE, FUN = function(x) sf::st_read(x, quiet = TRUE), quiet = TRUE)

# trapped errors return NULL
if (is.null(res)) {
Expand Down

0 comments on commit b494124

Please sign in to comment.