orcid_peer_reviews: Get peer review information for a person

View source: R/orcid_peer_reviews.R

orcid_peer_reviewsR Documentation

Get peer review information for a person

Description

Get peer review information for a person

Usage

orcid_peer_reviews(
  orcid,
  put_code = NULL,
  format = "application/json",
  summary = FALSE,
  ...
)

Arguments

orcid

(character) Orcid identifier(s), of the form XXXX-XXXX-XXXX-XXXX. required.

put_code

(character/integer) one or more put codes. up to 50. optional

format

(character) Name of the content-type format. One of "application/vnd.orcid+xml; qs=5", "application/orcid+xml; qs=3", "application/xml", "application/vnd.orcid+json; qs=4", "application/orcid+json; qs=2", "application/json" "application/vnd.citationstyles.csl+json". optional

summary

(logical) get peer review summary for a put code. Default: FALSE

...

Curl options passed on to crul::HttpClient()

Details

This function is vectorized, so you can pass in many ORCID's, and there's an element returned for each ORCID you put in.

Value

A list of results for each Orcid ID passed in, with each element named by the Orcid ID

Examples

## Not run: 
# all peer review data
res <- orcid_peer_reviews(orcid = "0000-0001-7678-8656")
res$`0000-0001-7678-8656`
names(res$`0000-0001-7678-8656`)
res$`0000-0001-7678-8656`$`group`

# get individual works
orcid_peer_reviews("0000-0003-1444-9135", 75565)

# summary
orcid_peer_reviews("0000-0003-1444-9135", 75565, summary = TRUE)

# get Journal titles via ISSN's provided in results, using the 
# provided issn_title dataset
x <- orcid_peer_reviews("0000-0001-7678-8656", put_code = "220419")
issn <- strsplit(x[[1]]$`review-group-id`, ":")[[1]][[2]]
issn_title[[issn]]

## End(Not run)

ropensci/rorcid documentation built on Sept. 12, 2022, 2:09 p.m.