is_hostname: Check if an argument is a hostname string

View source: R/string.R

is_hostnameR Documentation

Check if an argument is a hostname string

Description

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.

References

https://en.wikipedia.org/wiki/Hostname

Examples

is_hostname("example.com")

checkstring documentation built on Sept. 28, 2026, 5:07 p.m.