R/hello.R

Defines functions hello

Documented in hello

#' Hello Function
#'
#' @param name Name to insert, character type.
#'
#' @return Print message based on the input.
#' @export
#'
#' @examples hello(name = "John")
hello <- function(name) {
    if(is.character(name)){
        print(paste('Hello',name,'!'))
    }else{
        warning('The input is not a character, try again')

    }

}
fmmmendes/sayhello documentation built on May 29, 2019, 11:04 p.m.