is_windows | R Documentation |
Functions based on .Platform$OS.type
and Sys.info()
to test if
the current operating system is Windows, macOS, Unix, or Linux.
is_windows()
is_unix()
is_macos()
is_linux()
is_arm64()
library(xfun)
# only one of the following statements should be true
is_windows()
is_unix() && is_macos()
is_linux()
# In newer Macs, CPU can be either Intel or Apple
is_arm64() # TRUE on Apple silicone machines
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.