R/string.R
is_hostname.Rd
Check if an argument is a hostname string
is_hostname(x)
(any) Object to check.
any
TRUE if x is a valid hostname string, FALSE otherwise.
TRUE
x
FALSE
https://en.wikipedia.org/wiki/Hostname
is_hostname("example.com") #> [1] TRUE