R/orcid_address.R

Defines functions orcid_address

Documented in orcid_address

#' Get address information for a person
#'
#' @export
#' @inheritParams orcid_works 
#' @template deets
#'
#' @examples \dontrun{
#' # all addresses
#' res <- orcid_address(orcid = "0000-0002-1642-628X")
#' res$`0000-0002-1642-628X`
#' names(res$`0000-0002-1642-628X`)
#' res$`0000-0002-1642-628X`$`address`
#' 
#' # individual address
#' orcid_address(orcid = "0000-0002-1642-628X", 288064)
#' 
#' # format
#' orcid_address(orcid = "0000-0002-1642-628X", 288064, "application/xml")
#' }
orcid_address <- function(orcid, put_code = NULL, 
                          format = "application/json", ...) {
  orcid_putcode_helper("address", orcid, put_code, format, ...)
}

Try the rorcid package in your browser

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

rorcid documentation built on Jan. 21, 2021, 1:06 a.m.