This helper function checks whether a DOI is valid. The regular expression is based on the one provided by CrossRef as providing the highest coverage (https://bit.ly/doi-regex).

check_doi(doi)

Arguments

doi

Digital Object Identifier (string)

Value

Boolean

Examples

check_doi(doi = '10.1002/job.1787')
#> [1] TRUE
check_doi(doi = '10.1111/j.1365-2044.2012.07128.x')
#> [1] TRUE