Skip to content

Commit

Permalink
address glue syntax error in check_form_dots() (closes #1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Sep 10, 2024
1 parent 1ec763a commit 6ebdab4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/convert_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ check_form_dots <- function(x, call = rlang::caller_env()) {
c(
"The argument{?s} {.arg {names(x)[!good_names]}} cannot be used to create
the data.",
"Possible arguments are {.arg {.or {good_args}}."
"Possible arguments are {.arg {.or {good_args}}}."
),
call = call
)
Expand Down
5 changes: 3 additions & 2 deletions tests/testthat/_snaps/boost_tree_C5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
res <- fit(lc_basic, funded_amnt ~ term, data = lending_club, engine = "C5.0",
control = ctrl)
Condition
Error in `glue()`:
! Expecting '}'
Error in `.convert_form_to_xy_fit()`:
! The argument `engine` cannot be used to create the data.
Possible arguments are subset or weights.

# submodel prediction

Expand Down

0 comments on commit 6ebdab4

Please sign in to comment.