From a8b2915ef6c5867fdad642ca79b330903f5f4c9c Mon Sep 17 00:00:00 2001 From: DanielErro35 Date: Tue, 14 May 2024 14:05:10 -0700 Subject: [PATCH] fixed errors. --- R/compliments.R | 4 ++-- R/give_candygrams.R | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/compliments.R b/R/compliments.R index e0066f2..bffdae0 100644 --- a/R/compliments.R +++ b/R/compliments.R @@ -7,9 +7,9 @@ #' @return A compliment string #' #' @export -really_pretty <- function(name, follow_up = TRUE) { +really_pretty <- function(name, follow_up = FALSE) { - compliment <- glue::glue("You're, like, really pretty, {name}.") + compliment <- glue::glue("You're, like, really pretty {name}.") if (follow_up) { compliment <- paste(compliment, diff --git a/R/give_candygrams.R b/R/give_candygrams.R index 8d71397..4a983ec 100644 --- a/R/give_candygrams.R +++ b/R/give_candygrams.R @@ -30,7 +30,7 @@ give_candygrams <- function(person, number, number <- str_to_title(as.english(number)) - glue::glue("{number} for {person}.") + glue::glue("{number} for {person}.{extra_message}")