Learn R Programming

deepRstudio (version 0.0.9)

is_mac: Check Mac OS (Darwin)

Description

Determines if the current system is running on Mac OS (Darwin).

Usage

is_mac()

Arguments

Value

Logical value indicating whether the system is Mac OS. Returns TRUE if Mac OS, FALSE otherwise.

Author

Satoshi Kume

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.

Examples

Run this code
if (FALSE) {
if (is_mac()) {
  print("This is a Mac OS system.")
} else {
  print("This is not a Mac OS system.")
}
}

Run the code above in your browser using DataLab