R/hello_world.R

#' hello_world
#' 
#' The typical hello world example.
#' 
#' @param name a name for the greeting
#' @return string a greeting
#' @example inst/examples/ex_hello_world.R
#' @author Reinhard Simon
#' @family demo
#' @export
hello_world <- function(name = "world") {
  if(!is.character(name)) stop("name is not a character")
  
  if(name == "") return("")
  paste("Hello, ", name, "!", sep="")
}
c5sire/ghk documentation built on May 13, 2019, 10:35 a.m.