orcid_address: Get address information for a person

Description Usage Arguments Details Value Examples

View source: R/orcid_address.R

Description

Get address information for a person

Usage

1
orcid_address(orcid, put_code = NULL, format = "application/json", ...)

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

...

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# 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")

## End(Not run)

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