Learn R Programming

assertive (version 0.1-7)

assert_is_64_bit_os: What OS is running?

Description

Is the operating system in this machine Windows/Unix/Mac based.

Usage

assert_is_64_bit_os()

  assert_is_linux()

  assert_is_mac()

  assert_is_unix()

  assert_is_windows()

  is_64_bit_os()

  is_linux()

  is_mac()

  is_unix()

  is_windows()

Arguments

Value

  • is_windows returns TRUE if the OS on the current platform is Microsoft windows-based. is_unix returns TRUE if the OS is Unix based (pretty much anything that isn't Windows, including OS X). is_mac and is_linux return TRUE if the OS is Linux or Apple OS X respectively. is_64_bit_os returns TRUE when the operating system is 64-bit. The assert_* functions return nothing but throw an error if the corresponding is_* functions return FALSE.

See Also

.Platform, Sys.info and version.

Examples

Run this code
is_windows()
is_unix()
is_mac()
is_linux()

Run the code above in your browser using DataLab