Utility to detect the operating system of the current R session. Based on http://conjugateprior.org/2015/06/identifying-the-os-from-r/.

util_os()

Value

Return any of the following:

  • linux for GNU/Linux operating system

  • osx for Macintosh operating system

  • windows for Windows operating system

  • mystery machine

Examples

util_os()
#> sysname #> "linux"