R/hello.R

Defines functions hello

Documented in hello

# Hello, world!
#
# This is an example function named 'hello'
# which prints 'Hello, world!'.
#
# You can learn more about package authoring with RStudio at:
#
#   http://r-pkgs.had.co.nz/
#
# Some useful keyboard shortcuts for package authoring:
#
#   Install Package:           'Cmd + Shift + B'
#   Check Package:             'Cmd + Shift + E'
#   Test Package:              'Cmd + Shift + T'

  hello <- function(name = "your name") {
    name <- stringr::str_to_title(name)
    print(paste("Hello,", name))
  }
skylershapiro/myfirstpackage documentation built on Dec. 23, 2021, 3:24 a.m.