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 Oct. 11, 2024, 7:19 a.m.