Skip to content

Commit

Permalink
allow figshare 'search_for' param for #89
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Nov 6, 2023
1 parent b223dde commit 2433d5e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
7 changes: 7 additions & 0 deletions R/search-params.R
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2433d5e

Please sign in to comment.