R/string.R
is_hex.Rd
Check if an argument is a hexadecimal string
is_hex(x)
(any) Object to check.
any
TRUE if x is a valid non-empty hexadecimal string, FALSE otherwise.
TRUE
x
FALSE
is_hex("deadbeef") #> [1] TRUE