diff --git a/DESCRIPTION b/DESCRIPTION index 7b724ab5..152acc9f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: deposits Title: A universal client for depositing and accessing research data anywhere -Version: 0.2.1.043 +Version: 0.2.1.044 Authors@R: person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2172-5265")) diff --git a/R/search-params.R b/R/search-params.R index 6c1d3862..b62f36d1 100644 --- a/R/search-params.R +++ b/R/search-params.R @@ -47,6 +47,12 @@ process_search_params <- function (service, check_param_values_figshare (arglist) if (!is.null (search_string)) { + if ("search_for" %in% names (arglist)) { + stop ( + "Please specify only one of 'search_for' or 'search_string'.", + call. = FALSE + ) + } arglist <- c (arglist, search_for = search_string) } arglist <- c ( @@ -92,6 +98,7 @@ search_params_figshare <- function () { c ("item_type", "integer"), c ("doi", "string"), c ("handle", "string"), + c ("search_for", "string"), c ("project_id", "integer"), c ("order", "string"), c ("order_direction", "string"), diff --git a/codemeta.json b/codemeta.json index 959b39e0..bf91eb3a 100644 --- a/codemeta.json +++ b/codemeta.json @@ -7,7 +7,7 @@ "codeRepository": "https://github.com/ropenscilabs/deposits", "issueTracker": "https://github.com/ropenscilabs/deposits/issues", "license": "https://spdx.org/licenses/MIT", - "version": "0.2.1.043", + "version": "0.2.1.044", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R",