add_HTMLink | R Documentation |
add_HTMLink()
adds a column to the passed tibble, containing the HTML Link
corresponding to the document identifier provided.
add_HTMLink(timber)
timber |
a tibble of timber, with a table built by |
A document identifier is a unique sequence of letters and/or numbers
assigned to a published work to facilitate its unambiguous reference.
Generally, these identifiers allow for a given work to be assigned a
standardized URL. The add_HTMLink
function generates the HTML
link for the following supported document identifier standards:
DOI (Digital Object Identifier)
PMID (PubMed ID)
The add_HTMLink
function works by detecting the appropriate
document identifier type, using regular expressions. The DOI is identified
as beginning with two numerical digits, followed by a period, four or five numerical
digits, and a forward slash. The PMID is a series of eight numerical digits.
There is no additional validation done; while a non-DOI is unlikely to be
inadvertently recognized as a DOI, a non-PMID string of eight numbers could
easily be mistaken.
The passed tibble of timber with an additional column containing HTML Link(s).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.