R/which_os.R

Defines functions which_os

Documented in which_os

#' Get the OS imformation.
#' @examples
#' which_os()
#' @seealso Function \code{\link{get_os}}
#' @export

which_os <- function(){
  switch(Sys.info()[['sysname']],
         Windows= {print("I'm a Windows PC.")},
         Linux  = {print("I'm a Linux penguin.")},
         Darwin = {print("I'm a Mac OSX.")})
}
kang-yu/lazyu documentation built on May 30, 2019, 11:42 a.m.