Learn R Programming

rorcid (version 0.3.0)

orcid_id: Get data for particular ORCID's

Description

Get data for particular ORCID's

Usage

orcid_id(orcid = NULL, profile = "profile", ...)

Arguments

orcid
Orcid identifier(s), of the form XXXX-XXXX-XXXX-XXXX.
profile
Bibliographic ("bio"), biographical ("works"), or profile ("profile"). Default: profile
...
Curl options passed on to GET

Value

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

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.

Examples

Run this code
## Not run: 
# res <- orcid_id(orcid = "0000-0002-9341-7985")
# res$`0000-0002-9341-7985`
# res$`0000-0002-9341-7985`$`orcid-identifier`
# res$`0000-0002-9341-7985`$`orcid-preferences`
# res$`0000-0002-9341-7985`$`orcid-history`
# res$`0000-0002-9341-7985`$`orcid-bio`
# res$`0000-0002-9341-7985`$works
# 
# orcid_id(orcid = "0000-0002-9341-7985", "works")
# orcid_id(orcid = "0000-0002-9341-7985", "bio")
# orcid_id(orcid = "0000-0003-1620-1408")
# orcid_id(orcid = "0000-0002-9341-7985", profile="works")
# ids <- c("0000-0003-1620-1408", "0000-0002-9341-7985")
# orcid_id(orcid = ids)
# 
# library("httr")
# orcid_id(orcid = "0000-0003-1620-1408", config=verbose())
# 
# # only certain orcid's make employment/funding/eduction public
# ## some egs where it is public
# ### education and employment
# res <- orcid_id('0000-0003-1444-9135')
# res[[1]]$`orcid-activities`$affiliations$affiliation
# 
# ### education, employment, and funding
# res <- orcid_id('0000-0002-1642-628X')
# res[[1]]$`orcid-activities`$affiliations$affiliation
# res[[1]]$`orcid-activities`$`funding-list`$funding
# ## End(Not run)

Run the code above in your browser using DataLab