Skip to contents

Check if an argument is a hostname string

Usage

is_hostname(x)

Arguments

x

(any)
Object to check.

Value

TRUE if x is a valid hostname string, FALSE otherwise.

Examples

is_hostname("example.com")
#> [1] TRUE