short_doi: Get a random set of DOI's through CrossRef.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/short_doi.r

Description

Get a random set of DOI's through CrossRef.

Usage

1
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.

Details

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

Value

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

Author(s)

Scott Chamberlain [email protected]

See Also

crossref_search, crossref_citation, crossref_search_free in the rcrossref package.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Geta a short DOI, just the short DOI returned
short_doi(doi = "10.1371/journal.pone.0042793")
short_doi(doi = "10.1890/10-0340.1")

# Geta a short DOI, all data returned
short_doi(doi = "10.1371/journal.pone.0042793", justshort=FALSE)

## End(Not run)

ropensci/rmetadata documentation built on May 16, 2018, 7:04 a.m.