R/orcid_bio.R

Defines functions orcid_bio

Documented in orcid_bio

#' Get biography data for a person
#'
#' @export
#' @inheritParams orcid_works 
#' @template deets
#'
#' @examples \dontrun{
#' res <- orcid_bio(orcid = "0000-0002-1642-628X")
#' res$`0000-0002-1642-628X`
#' res$`0000-0002-1642-628X`$`created-date`
#' res$`0000-0002-1642-628X`$`last-modified-date`
#' res$`0000-0002-1642-628X`$`content`
#' res$`0000-0002-1642-628X`$`visibility`
#' res$`0000-0002-1642-628X`$path
#' }
orcid_bio <- function(orcid, format = "application/json", ...) {
  stats::setNames(
    lapply(orcid, orcid_prof_helper, path = "biography", ctype = format, ...), 
    orcid
  )
}

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.