This function uses Sys.info to detect the user's operating system and outputs an abbreviated character string to be used as inputs to OS specific function calls.

detect_os()

Value

win

Windows OS

mac

Mac OS