This function identifies the operating system on which the R session is running and returns it in a standardized format.

get_os()

Value

A character string indicating the operating system. Possible values are "windows", "osx", "linux", or others based on the system.

Examples

get_os()
#> [1] "osx"