is_mac | R Documentation |
Determines if the current system is running on Mac OS (Darwin).
is_mac()
Check if the System is Running on Mac OS
This function determines whether the current system is running on Mac OS. It utilizes the system information provided by R to check the operating system name, and returns TRUE if it is Mac OS (Darwin), and FALSE otherwise.
Logical value indicating whether the system is Mac OS. Returns TRUE if Mac OS, FALSE otherwise.
Satoshi Kume
## Not run:
if (is_mac()) {
print("This is a Mac OS system.")
} else {
print("This is not a Mac OS system.")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.