From: Peter Amstutz Date: Wed, 23 Sep 2020 21:50:14 +0000 (-0400) Subject: 16827: Don't append '/' to requests with query params. Bump version X-Git-Tag: 2.1.0~40^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/d6ea055606feac9b70a0419bce5405e5274633e7 16827: Don't append '/' to requests with query params. Bump version Also remove package-cross loading with "source" that generated warnings. Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/sdk/R/DESCRIPTION b/sdk/R/DESCRIPTION index 878a709014..75ac892b4b 100644 --- a/sdk/R/DESCRIPTION +++ b/sdk/R/DESCRIPTION @@ -1,9 +1,9 @@ Package: ArvadosR Type: Package Title: Arvados R SDK -Version: 0.0.5 -Authors@R: person("Fuad", "Muhic", role = c("aut", "cre"), email = "fmuhic@capeannenterprises.com") -Maintainer: Ward Vandewege +Version: 0.0.6 +Authors@R: c(person("Fuad", "Muhic", role = c("aut", "ctr"), email = "fmuhic@capeannenterprises.com"), + person("Peter", "Amstutz", role = c("cre"), email = "peter.amstutz@curii.com")) Description: This is the Arvados R SDK URL: http://doc.arvados.org License: Apache-2.0 diff --git a/sdk/R/R/ArvadosFile.R b/sdk/R/R/ArvadosFile.R index 70bb4450ec..fb1d3b335c 100644 --- a/sdk/R/R/ArvadosFile.R +++ b/sdk/R/R/ArvadosFile.R @@ -2,8 +2,6 @@ # # SPDX-License-Identifier: Apache-2.0 -source("./R/util.R") - #' ArvadosFile #' #' ArvadosFile class represents a file inside Arvados collection. diff --git a/sdk/R/R/Collection.R b/sdk/R/R/Collection.R index 8869d7be67..1440836547 100644 --- a/sdk/R/R/Collection.R +++ b/sdk/R/R/Collection.R @@ -2,11 +2,6 @@ # # SPDX-License-Identifier: Apache-2.0 -source("./R/Subcollection.R") -source("./R/ArvadosFile.R") -source("./R/RESTService.R") -source("./R/util.R") - #' Collection #' #' Collection class provides interface for working with Arvados collections. diff --git a/sdk/R/R/CollectionTree.R b/sdk/R/R/CollectionTree.R index 5f7a29455a..e01e7e8de9 100644 --- a/sdk/R/R/CollectionTree.R +++ b/sdk/R/R/CollectionTree.R @@ -2,10 +2,6 @@ # # SPDX-License-Identifier: Apache-2.0 -source("./R/Subcollection.R") -source("./R/ArvadosFile.R") -source("./R/util.R") - CollectionTree <- R6::R6Class( "CollectionTree", public = list( diff --git a/sdk/R/R/HttpRequest.R b/sdk/R/R/HttpRequest.R index 07defca90f..18b36f9689 100644 --- a/sdk/R/R/HttpRequest.R +++ b/sdk/R/R/HttpRequest.R @@ -2,8 +2,6 @@ # # SPDX-License-Identifier: Apache-2.0 -source("./R/util.R") - HttpRequest <- R6::R6Class( "HttrRequest", @@ -54,7 +52,7 @@ HttpRequest <- R6::R6Class( { query <- paste0(names(query), "=", query, collapse = "&") - return(paste0("/?", query)) + return(paste0("?", query)) } return("") diff --git a/sdk/R/R/Subcollection.R b/sdk/R/R/Subcollection.R index 17a9ef3ee3..981bd687a2 100644 --- a/sdk/R/R/Subcollection.R +++ b/sdk/R/R/Subcollection.R @@ -2,8 +2,6 @@ # # SPDX-License-Identifier: Apache-2.0 -source("./R/util.R") - #' Subcollection #' #' Subcollection class represents a folder inside Arvados collection. diff --git a/sdk/R/tests/testthat/test-HttpRequest.R b/sdk/R/tests/testthat/test-HttpRequest.R index eb58d033b5..c1b6f1039c 100644 --- a/sdk/R/tests/testthat/test-HttpRequest.R +++ b/sdk/R/tests/testthat/test-HttpRequest.R @@ -20,7 +20,7 @@ test_that("createQuery generates and encodes query portion of http", { queryParams$limit <- 20 queryParams$offset <- 50 expect_that(http$createQuery(queryParams), - equals(paste0("/?filters=%5B%5B%22color%22%2C%22%3D%22%2C%22red", + equals(paste0("?filters=%5B%5B%22color%22%2C%22%3D%22%2C%22red", "%22%5D%5D&limit=20&offset=50"))) })