Skip to content

Commit

Permalink
V1..0.2 RC
Browse files Browse the repository at this point in the history
Changed griddap() so that '[' and ']' are properly encoded
  • Loading branch information
rmendels committed Feb 6, 2023
1 parent 6da41ea commit b5de651
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Description: General purpose R client for 'ERDDAP' servers. Includes
'datasets', and fetch 'datasets', in either 'csv' or 'netCDF' format.
'ERDDAP' information:
<https://upwell.pfeg.noaa.gov/erddap/information.html>.
Version: 1.0.1
Date: 2022-12-11
Version: 1.0.2
Date: 2023-02-08
License: MIT + file LICENSE
Authors@R: c(
person("Scott", "Chamberlain", role = "aut"),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
rerddap 1.0.2
=============
Ensure '[' and ']' properly encoded in URL


rerddap 1.0.1
=============
Changed default cacheing behavior and 'cache_setup()'
Expand Down
5 changes: 4 additions & 1 deletion R/grid.R
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ dimvars <- function(x){

erd_up_GET <- function(url, dset, args, store, fmt, callopts) {
if (length(args) > 0) url <- sprintf("%s?%s", url, args)
cli <- crul::HttpClient$new(url = url, opts = callopts)
url1 <- url
url1 <- gsub('\\[', '%5B', url1)
url1 <- gsub('\\]', '%5D', url1)
cli <- crul::HttpClient$new(url = url1, opts = callopts)
if (store$store == "disk") {
# store on disk
key <- gen_key(url, args, fmt)
Expand Down

0 comments on commit b5de651

Please sign in to comment.