R/hello.R

Defines functions hello

Documented in hello

#' My hello world function
#'
#' @param n Number of random numbers
#'
#' @return A vector of length n
#' @export
#'
#' @examples
#' res <- hello(5)
#' \dontrun{
#' hello(10)
#' }
hello <- function(n=5) {
  print("Hello, world!")
  invisible(rnorm(n))
}
arraytools/rtoy documentation built on April 22, 2020, 5:18 p.m.