Skip to content

Commit b5de651

Browse files
committed
V1..0.2 RC
Changed griddap() so that '[' and ']' are properly encoded
1 parent 6da41ea commit b5de651

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Description: General purpose R client for 'ERDDAP' servers. Includes
55
'datasets', and fetch 'datasets', in either 'csv' or 'netCDF' format.
66
'ERDDAP' information:
77
<https://upwell.pfeg.noaa.gov/erddap/information.html>.
8-
Version: 1.0.1
9-
Date: 2022-12-11
8+
Version: 1.0.2
9+
Date: 2023-02-08
1010
License: MIT + file LICENSE
1111
Authors@R: c(
1212
person("Scott", "Chamberlain", role = "aut"),

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
rerddap 1.0.2
2+
=============
3+
Ensure '[' and ']' properly encoded in URL
4+
5+
16
rerddap 1.0.1
27
=============
38
Changed default cacheing behavior and 'cache_setup()'

R/grid.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,10 @@ dimvars <- function(x){
288288

289289
erd_up_GET <- function(url, dset, args, store, fmt, callopts) {
290290
if (length(args) > 0) url <- sprintf("%s?%s", url, args)
291-
cli <- crul::HttpClient$new(url = url, opts = callopts)
291+
url1 <- url
292+
url1 <- gsub('\\[', '%5B', url1)
293+
url1 <- gsub('\\]', '%5D', url1)
294+
cli <- crul::HttpClient$new(url = url1, opts = callopts)
292295
if (store$store == "disk") {
293296
# store on disk
294297
key <- gen_key(url, args, fmt)

0 commit comments

Comments
 (0)