Created
March 15, 2019 04:46
-
-
Save ymattu/68fa5d8c3cb2066c656860fe18fa1f82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_os <- function() { | |
if (.Platform$OS.type == "windows") { | |
"win" | |
} else if (Sys.info()["sysname"] == "Darwin") { | |
"mac" | |
} else if (.Platform$OS.type == "unix") { | |
"unix" | |
} else { | |
stop("Unknown OS") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment