Check if host is local

is.localhost(host)

Arguments

host

the hostname to be checked

Value

true if the host is the local host name

Details

Given the hostname is this the localhost. This returns true if either the value is localhost, or the value is the same as the fqdn.

Examples

# NOT RUN {
is.localhost(fqdn())
# }