Skip to contents

Accepts the bare form ("0000-0002-1825-0097") or the URL form, checks the format and the ISO 7064 11,2 check digit, and returns the bare iD.

Usage

ac_orcid(id)

Arguments

id

An ORCID iD.

Value

The bare iD, or an error if it is not valid.

Examples

ac_orcid("https://orcid.org/0000-0002-1825-0097")
#> [1] "0000-0002-1825-0097"
try(ac_orcid("0000-0002-1825-0098"))
#> Error : Not a valid ORCID iD: 0000-0002-1825-0098