This function also returns a DOI if a DOI is supplied; and strips any
preceding URL elements. As such, it can also be used to normalize DOIs if
some may include the 'doi.org' bit and others also the 'https://' bit.
Usage
get_doi_from_shortdoi(x, warn = TRUE)
Arguments
- x
The ShortDOI (or DOI)
- warn
Whether to warn if the input doesn't seem a valid ShortDOI or DOI
Value
A character vector with the DOIs
Examples
if (FALSE) { # \dontrun{
### For a ShortDOI
zirconia::get_doi_from_shortdoi("https://doi.org/jnjp");
### For only the identifier bit
zirconia::get_doi_from_shortdoi("jnjp");
} # }