Retrieve the short DOI for one or more DOIs

get_short_doi(x = NULL, strip10 = TRUE, throttle = TRUE)

get_short_dois(x = NULL, strip10 = TRUE)

Arguments

x

A DOI or a vector of DOIs.

strip10

Whether to strip the leading 10/.

throttle

Whether to wait for one second if no valid JSON containing the short doi is returned (throttle=TRUE) or throw an error (throttle=FALSE).

Value

The short DOI or DOIs.

Examples

if (FALSE) {
### Get a short DOI, just the short DOI returned
short_doi(doi = "10.1371/journal.pone.0042793")
short_doi(doi = "10.1890/10-0340.1")
}
if (FALSE) {
### Get a short DOI, just the short DOI returned
short_doi(doi = "10.1371/journal.pone.0042793")
short_doi(doi = "10.1890/10-0340.1")
}