os: Operating System

Description Usage Value Note See Also Examples

View source: R/os.R

Description

Determine operating system name.

Usage

1
2
3
4
5
6
7
8
9

Value

os returns the name of the operating system, typically "Linux", "Darwin", or "Windows".

os.linux, os.macos, os.unix, and os.windows return TRUE or FALSE.

Note

The macOS operating system identifies itself as "Darwin".

Both Linux and macOS are os.unix.

These shorthand functions can be useful when writing workaround solutions in platform-independent scripts.

See Also

Sys.info is the underlying function used to extract the operating system name.

TAF-package gives an overview of the package.

Examples

1
2
3
4
5

TAF documentation built on April 7, 2021, 5:06 p.m.