os | R Documentation |
Answers query about whether operating system is a certain type, or just reports type of operating system.
os(x)
x |
Optional query, must be among these: 'mac', 'apple', 'osx', 'darwin', 'win', 'windows', 'pc', 'microsoft', 'unix' |
If queried, returns TRUE or FALSE (or NA if query not recognized). If no query, returns 'win', 'mac', or 'unix'
get.os()
which is a bit more limited
os()
if (os('mac')) {cat("Hi, I'm a Mac\n")} else {cat('I am not a Mac\n')}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.