R/getSystemType.R

Defines functions getSystemType

##' @keywords internal

getSystemType <- function(sysname){

    if(missing(sysname) || is.null(sysname)){
        sysname <- Sys.info()[['sysname']]
    }
    system.type <- tolower(sysname)
    if(system.type=="darwin") system.type <- "linux"
    if(!system.type%in%c("linux","windows")){
        stop("system.type must be either linux or windows")
    }
    system.type
}

Try the NMsim package in your browser

Any scripts or data that you put into this service are public.

NMsim documentation built on Nov. 2, 2024, 9:06 a.m.