Skip to contents

nc_valid_orcid() checks the format and the ISO 7064 11,2 check digit. nc_orcid() also accepts the https://orcid.org/ form and returns the bare identifier, or fails with an informative error.

Usage

nc_valid_orcid(id)

nc_orcid(id)

Arguments

id

An ORCID iD, bare ("0000-0002-1825-0097") or as a URL.

Value

nc_valid_orcid(): TRUE or FALSE. nc_orcid(): the bare iD.

Examples

nc_valid_orcid("0000-0002-1825-0097")
#> [1] TRUE
nc_valid_orcid("0000-0002-1825-0098")
#> [1] FALSE
nc_orcid("https://orcid.org/0000-0002-1825-0097")
#> [1] "0000-0002-1825-0097"