Skip to content

Commit

Permalink
fix #111
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jan 10, 2023
1 parent d5083c1 commit 23188de
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions R/ZenodoManager.R
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,17 @@ ZenodoManager <- R6Class("ZenodoManager",
return(out)
},

#' @description Get grants by name.
#' @param name name
#' @param pretty Prettify the output. By default the argument \code{pretty} is set to
#' \code{TRUE} which will returns the list of grants as \code{data.frame}.
#' Set \code{pretty = FALSE} to get the raw list of grants
#' @return list of grants as \code{data.frame} or \code{list}
getGrantsByName = function(name, pretty = TRUE){
query = sprintf("title:%s", URLencode(paste0("\"",name,"\"")))
self$getGrants(q = query, pretty = pretty)
},

#' @description Get grant by Id.
#' @param id grant id
#' @return the grant
Expand Down
25 changes: 25 additions & 0 deletions man/ZenodoManager.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 23188de

Please sign in to comment.