getHostname.System
From R.utils v1.9.6
by Henrik Bengtsson
Retrieves the computer name of the current host
Retrieves the computer name of the current host.
Usage
System$getHostname(...)
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
.
Value
- Returns a
character
string.
synopsis
getHostname.System(static, ...)
See Also
*getUsername()
.
Community examples
Looks like there are no examples yet.