xfun (version 0.7)

is_windows: Test for types of operating systems

Description

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

Usage

is_windows()

is_unix()

is_macos()

is_linux()

Arguments

Examples

Run this code
# NOT RUN {
library(xfun)
# only one of the following statements should be true
is_windows()
is_unix() && is_macos()
is_linux()
# }

Run the code above in your browser using DataLab