R/get_conf.r

get.conf <- function(arg){
  if(arg == "SYS_NAME"){
    cat(Sys.info()['sysname'])
  } else if(arg == "OS_TYPE"){
    cat(.Platform$OS.type)
  } else{
    stop(paste0("The arg (", arg, ") is not implemented."))
  }
  invisible()
}

Try the pbdRPC package in your browser

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

pbdRPC documentation built on May 1, 2019, 7:28 p.m.