R/get_os.R

Defines functions get_os

#' @export
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")
  }
}
aljrico/hs_balancedata documentation built on Dec. 3, 2019, 5:47 p.m.