Skip to content

Commit f97a6cc

Browse files
author
‘topepo’
committed
small formatting changes
1 parent c29e8b0 commit f97a6cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/fit.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ fit.model_spec <-
157157
}
158158

159159
if (all(c("x", "y") %in% names(dots))) {
160-
cli::cli_abort("`fit.model_spec()` is for the formula methods. Use `fit_xy()` instead.")
160+
cli::cli_abort("{.fn fit.model_spec} is for the formula methods. Use {.fn fit_xy} instead.")
161161
}
162162
cl <- match.call(expand.dots = TRUE)
163163
# Create an environment with the evaluated argument objects. This will be
@@ -307,7 +307,8 @@ fit_xy.model_spec <-
307307

308308
if (object$engine == "spark") {
309309
cli::cli_abort(
310-
"spark objects can only be used with the formula interface to {.fn fit} with a spark data object."
310+
"spark objects can only be used with the formula interface to {.fn fit}
311+
with a spark data object."
311312
)
312313
}
313314

0 commit comments

Comments
 (0)