Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

os_name

Human readable name of the current operating system


Description

For example Windows 8.1 instead of Windows version 6.3.9600. On macOS it includes the code names, on Linux it includes the distribution names and codenames if appropriate.

Usage

os_name()

Details

It uses utils::sessionInfo(), but simplifies its output a bit on Windows, to make it more concise.

Value

A character scalar.


sessioninfo

R Session Information

v1.1.1
GPL-2
Authors
Gábor Csárdi, R core, Hadley Wickham, Winston Chang, Robert M Flight, Kirill Müller, Jim Hester
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.