R/Identify.OS.R

#' @export
Identify.OS = function(){
  pl <- .Platform$OS.type
  if(tolower(pl) == "windows"){
    os = structure("windows", class = "character")
  }
  else{
    si <- as.list(Sys.info())
      if(tolower(si$sysname) == "linux"){
      os = structure("Linux", class = "character")
    }
    if(tolower(si$sysname) == "darwin"){
      os = structure("MacOSX", class = "character")
    }
  }
  return(os)
}

Try the easycsv package in your browser

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

easycsv documentation built on May 2, 2019, 3:33 p.m.