System$getHostname

0th

Percentile

Retrieves the computer name of the current host

Retrieves the computer name of the current host.

Keywords
methods, internal
Usage
## Static method (use this):
## System$getHostname(...)

## Don't use the below: ## S3 method for class 'System': getHostname(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.

Value

See Also

*getUsername().

Aliases
  • System$getHostname
  • getHostname.System
  • System.getHostname
  • getHostname,System-method
Documentation reproduced from package R.utils, version 1.28.4, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.