Debian Codegraph @

man/os.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/os.R
3 \name{is_windows}
4 \alias{is_windows}
5 \alias{is_unix}
6 \alias{is_macos}
7 \alias{is_linux}
8 \alias{is_arm64}
9 \title{Test for types of operating systems}
10 \usage{
11 is_windows()
12
13 is_unix()
14
15 is_macos()
16
17 is_linux()
18
19 is_arm64()
20 }
21 \description{
22 Functions based on \code{.Platform$OS.type} and \code{Sys.info()} to test if
23 the current operating system is Windows, macOS, Unix, or Linux.
24 }
25 \examples{
26 library(xfun)
27 # only one of the following statements should be true
28 is_windows()
29 is_unix() && is_macos()
30 is_linux()
31 # In newer Macs, CPU can be either Intel or Apple
32 is_arm64() # TRUE on Apple silicone machines
33 }