From b6258b5f5c6f01467cfbd4cbe3e235473a567bac Mon Sep 17 00:00:00 2001 From: Jason Cory Brunson Date: Mon, 25 Nov 2024 07:48:24 -0500 Subject: [PATCH 1/2] declense verb in abort by 'offenders' quantity --- R/selections.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/selections.R b/R/selections.R index 4da3c5e56..ee718406d 100644 --- a/R/selections.R +++ b/R/selections.R @@ -49,7 +49,7 @@ #' functions aren't restricted to predictors. They will thus select outcomes, #' ID, and predictor columns alike. This is why these functions should be used #' with care, and why [tidyselect::everything()] likely isn't what you need. -#' +#' #' For example: #' #' \preformatted{ @@ -204,8 +204,8 @@ recipes_eval_select <- function(quos, data, info, ..., allow_rename = FALSE, offenders <- offenders[offenders != ""] cli::cli_abort( - "The following argument{?s} {?was/were} specified but do not exist: \\ - {.arg {offenders}}.", + "The following argument{?s} {?was/were} specified but do{?es/} not exist: \\ + {.arg {offenders}}.", call = call ) } From d14ee249f4b77ecbfb9a2551a31a4f2c2ec8b709 Mon Sep 17 00:00:00 2001 From: Emil Hvitfeldt Date: Mon, 25 Nov 2024 15:26:04 -0800 Subject: [PATCH 2/2] update snapshot --- tests/testthat/_snaps/basics.md | 2 +- tests/testthat/_snaps/rm.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/_snaps/basics.md b/tests/testthat/_snaps/basics.md index b8da2fe4c..b4636b9c9 100644 --- a/tests/testthat/_snaps/basics.md +++ b/tests/testthat/_snaps/basics.md @@ -210,7 +210,7 @@ Condition Error in `step_pca()`: Caused by error in `prep()`: - ! The following argument was specified but do not exist: `number`. + ! The following argument was specified but does not exist: `number`. --- diff --git a/tests/testthat/_snaps/rm.md b/tests/testthat/_snaps/rm.md index f0ec4ae60..7a4392b24 100644 --- a/tests/testthat/_snaps/rm.md +++ b/tests/testthat/_snaps/rm.md @@ -5,7 +5,7 @@ Condition Error in `step_rm()`: Caused by error in `prep()`: - ! The following argument was specified but do not exist: `sepal_length`. + ! The following argument was specified but does not exist: `sepal_length`. # empty printing