short_dois.Rd
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)
A DOI or a vector of DOIs.
Whether to strip the leading 10/
.
Whether to wait for one second if no valid JSON containing
the short doi is returned (throttle=TRUE
) or throw an
error (throttle=FALSE
).
The short DOI or DOIs.
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")
}