orcid_doi: Search for ORCID ID's using DOIs

Description Usage Arguments Examples

View source: R/orcid_doi.r

Description

Search for ORCID ID's using DOIs

Usage

1
orcid_doi(dois = NULL, start = NULL, rows = NULL, fuzzy = FALSE, ...)

Arguments

dois

(character) Digital object identifier (DOI), a vector fo DOIs.

start

(integer) Result number to start on. Keep in mind that pages start at 0.

rows

(integer) Numer of results to return.

fuzzy

(logical) Use fuzzy matching on input DOIs. Defaults to FALSE. If FALSE, we stick "digital-object-ids" before the DOI so that the search sent to ORCID is for that exact DOI. If TRUE, we use some regex to find the DOI.

...

Curl options passed on to crul::HttpClient()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
orcid_doi(dois="10.1087/20120404", fuzzy=TRUE)

# fuzzy is FALSE by default
orcid_doi(dois="10.1087/20120404", fuzzy=FALSE)

# This DOI is not a real one, but a partial DOI, then we can fuzzy search
# get more than defualt 10 records (or rows)
orcid_doi(dois="10.1087/2", fuzzy=TRUE, rows=20) 

# If you don't input proper DOIs, the function will get mad
dois <- c("10.1371/journal.pone.0025995","10.1371/journal.pone.0053712",
       "10.1371/journal.pone.0054608","10.1371/journal.pone.0055937")
orcid_doi(dois=dois)

# dois <- c("10.1016/j.medpal.2008.12.005","10.1080/00933104.2000.10505926",
#          "10.1037/a0024480", "10.1002/anie.196603172","2344","asdf","232",
#          "asdf","23dd")
# orcid_doi(dois=dois)

orcid_doi(dois="10.1087/20120404", fuzzy=FALSE) 
orcid_doi(dois="10.1371/journal.pone.0025995", fuzzy=FALSE)

## End(Not run)

Example output

Error : In non-interactive environments, please set ORCID_TOKEN env to a ORCID access token, see ?orcid_auth for details
list()
attr(,"class")
[1] "orcid_doi"
Error : In non-interactive environments, please set ORCID_TOKEN env to a ORCID access token, see ?orcid_auth for details
list()
attr(,"class")
[1] "orcid_doi"
Error : In non-interactive environments, please set ORCID_TOKEN env to a ORCID access token, see ?orcid_auth for details
list()
attr(,"class")
[1] "orcid_doi"
Error : In non-interactive environments, please set ORCID_TOKEN env to a ORCID access token, see ?orcid_auth for details
Error : In non-interactive environments, please set ORCID_TOKEN env to a ORCID access token, see ?orcid_auth for details
Error : In non-interactive environments, please set ORCID_TOKEN env to a ORCID access token, see ?orcid_auth for details
Error : In non-interactive environments, please set ORCID_TOKEN env to a ORCID access token, see ?orcid_auth for details
list()
attr(,"class")
[1] "orcid_doi"
Error : In non-interactive environments, please set ORCID_TOKEN env to a ORCID access token, see ?orcid_auth for details
list()
attr(,"class")
[1] "orcid_doi"
Error : In non-interactive environments, please set ORCID_TOKEN env to a ORCID access token, see ?orcid_auth for details
list()
attr(,"class")
[1] "orcid_doi"

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