1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
\name{host}
\alias{hostname}
\alias{pid}
\title{System calls}
\description{
The functions \code{hostname} and \code{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{
\item{hostname}{returns a string}
\item{pid}{returns an unsigned integer}
}
\me
\examples{
cat("The name of your computer is '", hostname(),
"'. Your R program has current pid ", pid(), ".\n", sep="")
}
\keyword{sysdata}
\keyword{utilities}
% LocalWords: pid unix Schlather url
|