host | R Documentation |
The functions hostname
and pid
return
the host name and the PID, respectively.
hostname() pid()
If R runs on a unix platform the host name and the PID are returned, otherwise the empty string and naught, respectively.
hostname |
returns a string |
pid |
returns an unsigned integer |
cat("The name of your computer is '", hostname(), "'. Your R program has current pid ", pid(), ".\n", sep="")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.