is_mac {deepRstudio} | R Documentation |
Check Mac OS (Darwin)
Description
Determines if the current system is running on Mac OS (Darwin).
Usage
is_mac()
Details
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.
Value
Logical value indicating whether the system is Mac OS. Returns TRUE if Mac OS, FALSE otherwise.
Author(s)
Satoshi Kume
Examples
## Not run:
if (is_mac()) {
print("This is a Mac OS system.")
} else {
print("This is not a Mac OS system.")
}
## End(Not run)
[Package deepRstudio version 0.0.9 Index]