Learn R Programming

BBmisc (version 1.5)

getOperatingSystem: Functions to determine the operating system.

Description

  • getOperatingSystem
{Simple wrapper for .Platform$OS.type, returns character(1).} isUnix{Predicate for OS string, returns logical(1). Currently this would include Unix, Linux and Mac flavours.} isLinux{Predicate for sysname string, returns logical(1).} isDarwin{Predicate for sysname string, returns logical(1).} isWindows{Predicate for OS string, returns logical(1).}

Usage

getOperatingSystem()

isWindows()

isUnix()

isLinux()

isDarwin()

Arguments

Value

  • See above.