R/hello.R

Defines functions hello

#' Hello, world  function
#'
#' This is an example function named 'hello'
#' which prints 'Hello, world!'.
#'
#' @param name string with name
#'
#' @export
#'
#' @examples
#'
#' hello("world")
#'
#' hello("again")
#'
hello <- function(name) {
  print(paste0("Hello ", name, "!"))
}
testrpkgs/foopkg documentation built on Nov. 23, 2020, 11:30 p.m.