Learn R Programming

retractcheck (version 1.0.0)

check_doi: Check for valid DOI

Description

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).

Usage

check_doi(doi)

Arguments

doi

Digital Object Identifier (string)

Value

Boolean

Examples

Run this code
# NOT RUN {
  check_doi(doi = '10.1002/job.1787')
  check_doi(doi = '10.1111/j.1365-2044.2012.07128.x')
# }

Run the code above in your browser using DataLab