get_os | R Documentation |
This function returns a simple string depending whether the current instance of R runs on windows, mac osx or linux.
get_os()
The function was proposed on the blog post at http://conjugateprior.org/2015/06/identifying-the-os-from-r/ found on R-bloggers.
The case of windows was not included in the original
version from the blog post. It was included here
at the beginning to filter them out at the beginning
based on the value of .Platform$OS.type
name of operating system which is either "windows", "osx" or "linux".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.