Get a random set of DOI's through CrossRef.

Usage

short_doi(doi = NULL, justshort = TRUE)

Arguments

doi
A long-form DOI.
justshort
If TRUE, return just the short DOI. If false, the short DOI, the submitted long-form DOI, and whether the short DOI is new.

Value

Either the short DOI or the submitted DOI, the short DOI, and whether it is a new short DOI or not.

Description

Get a random set of DOI's through CrossRef.

Details

See here http://shortdoi.org/ for more information.

Examples

# Geta a short DOI, just the short DOI returned short_doi(doi = "10.1371/journal.pone.0042793")
[1] "10/f2bfz9"
short_doi(doi = "10.1890/10-0340.1")
[1] "10/fhxmb2"
# Geta a short DOI, all data returned short_doi(doi = "10.1371/journal.pone.0042793", justshort=FALSE)
$DOI [1] "10.1371/journal.pone.0042793" $ShortDOI [1] "10/f2bfz9" $IsNew [1] FALSE