Skip to content

Commit

Permalink
hello2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrittanyTroast-NOAA committed Feb 10, 2025
1 parent 1f955d6 commit 59ba336
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions R/hello2.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#' Personal greeting
#'
#' @description Greet a person and appropriately capitalize their name.
#'
#' @param name Your name (character string; e.g. "john doe").
#'
#' @return A character string, capitalized to title case.
#' @export
#'
#' @examples
#' hello("james bond")
hello2 <- function(name = "your name") {
name <- stringr::str_to_title(name)
print(paste("Hello,", name))
}

0 comments on commit 59ba336

Please sign in to comment.