From 1cc8b728d13c22f60ec2f4da05db0512135aad9f Mon Sep 17 00:00:00 2001 From: asegun-cod Date: Thu, 19 Oct 2023 10:47:24 +0100 Subject: [PATCH] fix small bug in `api_question_code` --- R/fct_api_pred.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/fct_api_pred.R b/R/fct_api_pred.R index c318e64..7922b55 100644 --- a/R/fct_api_pred.R +++ b/R/fct_api_pred.R @@ -216,8 +216,8 @@ batch_predict <- function(df) { #' @examples api_question_code(get_golem_config("comment_1")) api_question_code <- function(value) { dplyr::case_when( - value == "What did we do well" ~ "what_good", - value == "What could be improved" ~ "could_improve", + value == "What did we do well?" ~ "what_good", + value == "What could be improved?" ~ "could_improve", TRUE ~ "nonspecific" ) }