R/hello.R

Defines functions hello

Documented in hello

#' @title Print hello world
#'
#' @description Prints hello world
#'
#' @param x A character string to be concatencated in print statement
#'
#' @return Hello world
#'
#' @examples
#'
#' library(testpackage)
#' hello('string')
#'
#' @export

hello <- function(x) {

  stopifnot(is.character(x))

  print(paste0("Hello ", x, "!"))
}
ukgovdatascience/testpackage documentation built on May 17, 2019, 12:15 p.m.