R/get_os.R

Defines functions get_os

Documented in get_os

#' Get OS
#' 
#' Infer the Operating System (OS) of the current machine being used. 
#' 
#' @keywords internal
get_os <- function() {
    OS <- ""
    switch(Sys.info()[["sysname"]],
        Windows = {
            OS <- "Windows"
        },
        Linux = {
            OS <- "Linux"
        },
        Darwin = {
            OS <- "Mac"
        }
    )
    return(OS)
}
NathanSkene/MAGMA_Celltyping documentation built on Aug. 21, 2023, 8:55 a.m.