Skip to content

Commit

Permalink
Merge branch 'main' into cli-steps-one
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt authored Nov 14, 2023
2 parents e32f079 + 746b473 commit 05774ec
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 21 deletions.
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Suggests:
kernlab,
knitr,
modeldata (>= 0.1.1),
parsnip (>= 0.1.7),
parsnip (>= 1.1.1.9001),
RANN,
RcppRoll,
rmarkdown,
Expand All @@ -72,3 +72,5 @@ Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
Remotes:
tidymodels/parsnip
8 changes: 5 additions & 3 deletions R/recipe.R
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,11 @@ inline_check <- function(x) {
cli::cli_abort(c(
x = "No in-line functions should be used here.",
i = "{cli::qty(length(funs))}The following function{?s} {?was/were} \\
found:",
"*" = "{.and {.code {funs}}}",
i = "Use steps to do transformations instead."
found: {.and {.code {funs}}}.",
i = "Use steps to do transformations instead.",
i = "If your modeling engine uses special terms in formulas, pass \\
that formula to workflows as a \\
{.help [model formula](parsnip::model_formula)}."
))
}

Expand Down
16 changes: 8 additions & 8 deletions man/recipe.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/selections.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions tests/testthat/_snaps/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
Condition
Error in `inline_check()`:
x No in-line functions should be used here.
i The following function was found:
* `log`
i The following function was found: `log`.
i Use steps to do transformations instead.
i If your modeling engine uses special terms in formulas, pass that formula to workflows as a model formula (`?parsnip::model_formula()`).

---

Expand All @@ -16,9 +16,9 @@
Condition
Error in `inline_check()`:
x No in-line functions should be used here.
i The following functions were found:
* `^` and `(`
i The following functions were found: `^` and `(`.
i Use steps to do transformations instead.
i If your modeling engine uses special terms in formulas, pass that formula to workflows as a model formula (`?parsnip::model_formula()`).

---

Expand All @@ -27,9 +27,9 @@
Condition
Error in `inline_check()`:
x No in-line functions should be used here.
i The following function was found:
* `:`
i The following function was found: `:`.
i Use steps to do transformations instead.
i If your modeling engine uses special terms in formulas, pass that formula to workflows as a model formula (`?parsnip::model_formula()`).

---

Expand All @@ -38,9 +38,9 @@
Condition
Error in `inline_check()`:
x No in-line functions should be used here.
i The following function was found:
* `^`
i The following function was found: `^`.
i Use steps to do transformations instead.
i If your modeling engine uses special terms in formulas, pass that formula to workflows as a model formula (`?parsnip::model_formula()`).

# Using prepare

Expand Down

0 comments on commit 05774ec

Please sign in to comment.