as.orcid: Convert an ORCID or something like an ORCID object

View source: R/as.orcid.R

as.orcidR Documentation

Convert an ORCID or something like an ORCID object

Description

Convert an ORCID or something like an ORCID object

Usage

as.orcid(x, ...)

Arguments

x

An ORCID id, passed to print

...

Further args passed on to orcid_id()

Value

an S3 object of class or_cid, which pretty prints for brevity

Examples

## Not run: 
as.orcid(x="0000-0002-1642-628X")
out <- orcid("text:English", rows = 20)
as.orcid(out$`orcid-identifier.path`[1])

# Passon further args to orcid_id()
as.orcid("0000-0002-1642-628X", verbose = TRUE)

# Browse to a profile
# browse(as.orcid("0000-0002-1642-628X"))

# many ORCIDs as a character vector
ids <- c("0000-0002-1642-628X", "0000-0002-9341-7985")
as.orcid(ids)

# many in a list via orcid_id()
(x <- lapply(ids, orcid_id))
as.orcid(x)

## End(Not run)

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