Skip to contents

Given an id check if it is valid.

Usage

check_code(id)

Arguments

id

ID or CVE of the document (character).

Value

A logical value if correct, errors if something is not right.

Examples

check_code("BOE-S-20141006") # Normal way
#> [1] TRUE
check_code("BOE-S-2014-242") # Also accepted but not documented
#> [1] TRUE
# Will fail:
# check_code("BOE-S-2014")