R/utils.R

Defines functions get_os

Documented in get_os

#' Get OS name
#' 
#' @return  A string of OS name
#' @examples
#' get_os()
#' 
#' @export
get_os <- function(){
  switch(Sys.info()["sysname"],
    "Windows" = "win",
     "Linux"  = "linux",
                "mac"
  )
}

Try the screenshot package in your browser

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

screenshot documentation built on June 22, 2024, 10:30 a.m.