R/id.R
is_doi.Rd
Check if an argument is a DOI string
is_doi(x)
(any) Object to check.
any
TRUE if x is a valid DOI string, FALSE otherwise.
TRUE
x
FALSE
https://www.doi.org/the-identifier/what-is-a-doi/
is_doi("10.1038/nphys1170") #> [1] TRUE