get_os: Get name of OS we are running on

View source: R/misc_helper.R

get_osR Documentation

Get name of OS we are running on

Description

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

Usage

get_os()

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/rmdhelp documentation built on Oct. 31, 2023, 10:21 a.m.