hostname: System calls

View source: R/utils.R

hostR Documentation

System calls

Description

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

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

Examples

cat("The name of your computer is '", hostname(),
    "'. Your R program has current pid ", pid(), ".\n", sep="")

RandomFieldsUtils documentation built on April 19, 2022, 5:09 p.m.