host

System calls

The functions hostname and pid return the host name and the PID, respectively.

Keywords
utilities, sysdata
Usage
hostname()

pid()

Details

If R runs on a unix platform the host name and the PID are returned, otherwise the empty string and naught, respectively.

Value

hostname

returns a string

pid

returns an unsigned integer

Aliases
  • hostname
  • pid
Examples
# NOT RUN {
cat("The name of your computer is '", hostname(),
    "'. Your R program has current pid ", pid(), ".\n", sep="")
# }
Documentation reproduced from package RandomFieldsUtils, version 0.5.3, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.