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

View source: R/short_doi.r

short_doiR Documentation

Get a random set of DOI's through CrossRef.

Description

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.

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 myrmecocystus@gmail.com

See Also

crossref_search, crossref_citation, crossref_search_free in the rcrossref package.

Examples

## 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 18, 2022, 6:41 p.m.