os: Test for types of operating systems

Description Usage Examples

Description

Functions based on .Platform$OS.type and Sys.info() to test if the current operating system is Windows, macOS, Unix, or Linux.

Usage

1
2
3
4
5
6
7

Examples

1
2
3
4
5
library(xfun)
# only one of the following statements should be true
is_windows()
is_unix() && is_macos()
is_linux()

yihui/xfun documentation built on Oct. 25, 2018, 11:44 p.m.