1919# ' outcome(s), predictors, case weights, etc). Note: when needed, a
2020# ' \emph{named argument} should be used.
2121# ' @param control A named list with elements `verbosity` and
22- # ' `catch`. See [fit_control ()].
22+ # ' `catch`. See [control_parsnip ()].
2323# ' @param ... Not currently used; values passed here will be
2424# ' ignored. Other options required to fit the model should be
2525# ' passed using `set_engine()`.
4242# '
4343# ' If the model engine has not been set, the model's default engine will be used
4444# ' (as discussed on each model page). If the `verbosity` option of
45- # ' [fit_control ()] is greater than zero, a warning will be produced.
45+ # ' [control_parsnip ()] is greater than zero, a warning will be produced.
4646# ' @examples
4747# ' # Although `glm()` only has a formula interface, different
4848# ' # methods for specifying the model can be used
8181# ' The return value will also have a class related to the fitted model (e.g.
8282# ' `"_glm"`) before the base class of `"model_fit"`.
8383# '
84- # ' @seealso [set_engine()], [fit_control ()], `model_spec`, `model_fit`
84+ # ' @seealso [set_engine()], [control_parsnip ()], `model_spec`, `model_fit`
8585# ' @param x A matrix or data frame of predictors.
8686# ' @param y A vector, matrix or data frame of outcome data.
8787# ' @rdname fit
@@ -91,7 +91,7 @@ fit.model_spec <-
9191 function (object ,
9292 formula = NULL ,
9393 data = NULL ,
94- control = fit_control (),
94+ control = control_parsnip (),
9595 ...
9696 ) {
9797 if (object $ mode == " unknown" ) {
@@ -182,7 +182,7 @@ fit_xy.model_spec <-
182182 function (object ,
183183 x = NULL ,
184184 y = NULL ,
185- control = fit_control (),
185+ control = control_parsnip (),
186186 ...
187187 ) {
188188 object <- check_mode(object , levels(y ))
0 commit comments