Wraps DOI code in a HTML clickable link to the respective address on doi.org. Allows displaying a truncated DOI string instead of the full form.

linkify_doi(doi, truncate = TRUE)

Arguments

doi

[character()]
DOI codes to use (as labels and links).

truncate

[logical(1)]
Whether displayed DOI code should be truncated to the first 18 characters.

Value

A string vector of the same length as doi parameter, each element being an <a> tag for respective DOI code.

See also