R/WhatPlatform.R

#' Return the name of the current platform
#'
#' Returns the name of the current platform
#' @export
#' @examples
#' whatplatform()

whatplatform <- function () {
  if(Sys.info()[['sysname']]=='Darwin') {mysys='mac'} else {mysys='win'}
  if(mysys=='win') {loadfonts(device='win',quiet=TRUE)}
  return(mysys)
}
petrbouchal/pbtools documentation built on May 25, 2019, 2:53 a.m.