random_praises <- c(
"Absolutely fabulous!",
"Amazing!",
"Awesome!",
"Beautiful!",
"Bravo!",
"Cool job!",
"Delightful!",
"Excellent!",
"Fantastic!",
"Great work!",
"I couldn't have done it better myself.",
"Impressive work!",
"Lovely job!",
"Magnificent!",
"Nice job!",
"Out of this world!",
"Resplendent!",
"Smashing!",
"Someone knows what they're doing :)",
"Spectacular job!",
"Splendid!",
"Success!",
"Super job!",
"Superb work!",
"Swell job!",
"Terrific!",
"That's a first-class answer!",
"That's glorious!",
"That's marvelous!",
"Very good!",
"Well done!",
"What first-rate work!",
"Wicked smaht!",
"Wonderful!",
"You aced it!",
"You rock!",
"You should be proud.",
":)"
)
random_encouragements <- c(
"Please try again.",
"Give it another try.",
"Let's try it again.",
"Try it again; next time's the charm!",
"Don't give up now, try it one more time.",
"But no need to fret, try it again.",
"Try it again. I have a good feeling about this.",
"Try it again. You get better each time.",
"Try it again. Perseverence is the key to success.",
"That's okay: you learn more from mistakes than successes. Let's do it one more time."
)
#' Random praise and encouragement
#'
#' Random praises and encouragements sayings to compliment your question and quiz experience.
#'
#' @return Character string with a random saying
#' @export
#' @rdname random_praise
random_praise <- function() {
paste0("Correct! ", sample(random_praises, 1))
}
#' @export
#' @rdname random_praise
random_encouragement <- function() {
sample(random_encouragements, 1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.