A logical value. If FALSE, NA values
cause an error; otherwise they do not. Like na.rm in many
stats package functions, except that the position of the failing
values does not change.
Value
is_uk_telephone_number returns TRUE if the input string
contains a valid UK telephone number. The {assert_*} function returns nothing
but throws an error when the is_* function returns FALSE.
References
The regex is adapted from one on the now defunct
aa-asterisk.org.uk site with some additional consultation from
https://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes