Skip to content

Commit 6ebdab4

Browse files
committed
address glue syntax error in check_form_dots() (closes #1194)
1 parent 1ec763a commit 6ebdab4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

R/convert_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ check_form_dots <- function(x, call = rlang::caller_env()) {
323323
c(
324324
"The argument{?s} {.arg {names(x)[!good_names]}} cannot be used to create
325325
the data.",
326-
"Possible arguments are {.arg {.or {good_args}}."
326+
"Possible arguments are {.arg {.or {good_args}}}."
327327
),
328328
call = call
329329
)

tests/testthat/_snaps/boost_tree_C5.0.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
res <- fit(lc_basic, funded_amnt ~ term, data = lending_club, engine = "C5.0",
55
control = ctrl)
66
Condition
7-
Error in `glue()`:
8-
! Expecting '}'
7+
Error in `.convert_form_to_xy_fit()`:
8+
! The argument `engine` cannot be used to create the data.
9+
Possible arguments are subset or weights.
910

1011
# submodel prediction
1112

0 commit comments

Comments
 (0)