Learn R Programming

R.utils (version 1.9.7)

getHostname.System: Retrieves the computer name of the current host

Description

Retrieves the computer name of the current host.

Usage

System$getHostname(...)

Arguments

Value

synopsis

getHostname.System(static, ...)

Details

First, this function checks the system environment variables HOST, HOSTNAME, and COMPUTERNAME. Second, it checks Sys.info()["nodename"] for host name details. Finally, it tries to query the system command uname -n.

See Also

*getUsername().