get_os: Get name of OS we are running on

Description Usage Details Value

Description

This function returns a simple string depending whether the current instance of R runs on windows, mac osx or linux.

Usage

1

Details

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

Value

name of operating system which is either "windows", "osx" or "linux".


charlotte-ngs/rmddochelper documentation built on June 27, 2019, 1:22 a.m.