is_doi: Check if an argument is a DOI string

View source: R/id.R

is_doiR Documentation

Check if an argument is a DOI string

Description

Check if an argument is a DOI string

Usage

is_doi(x)

Arguments

x

(any)
Object to check.

Value

TRUE if x is a valid DOI string, FALSE otherwise.

References

https://www.doi.org/the-identifier/what-is-a-doi/

Examples

is_doi("10.1038/nphys1170")

checkstring documentation built on Sept. 28, 2026, 5:07 p.m.