inst/ignore/dc_person.R

#' DataCite REST API: person
#'
#' @export
#' @param person_id (character) Person identifier
#' @param ... curl options passed on to [crul::HttpClient]
#' @seealso [dc_people()]
#' @examples \dontrun{
#' dc_person("peope", verbose = TRUE)
#' }
dc_person <- function(person_id, ...) {
  dc_rest_GET("people", person_id, ...)
}

dc_people <- function(person_id, ...) {
  dc_rest_GET("contributors", ...)
}

Try the rdatacite package in your browser

Any scripts or data that you put into this service are public.

rdatacite documentation built on Feb. 16, 2023, 5:18 p.m.