validate_country_code: Validate ISO two-letters country code

Description Usage Arguments Value

View source: R/utils.R

Description

If available uses ISOcodes::ISO_3166 to validate country code. Otherwise assume that the code is valid as long as it is a two-letter code or __. See rr_publisher_country() for use of country codes.

Usage

1

Arguments

country

[character(1)]
a two-letter country code or AA, ZZ or __ (special country codes for SHERPA/RoMEO)

Value

TRUE if the country code is valid, errors otherwise


rromeo documentation built on March 13, 2020, 9:08 a.m.