man-roxygen/spec-details.R

#' @details
#' This function only defines what _type_ of model is being fit. Once an engine
#'  is specified, the _method_ to fit the model is also defined. See
#'  [set_engine()] for more on setting the engine, including how to set engine
#'  arguments.
#'
#' The model is not trained or fit until the [`fit()`][fit.model_spec()] function is used
#' with the data.
#'
#' Each of the arguments in this function other than `mode` and `engine` are
#' captured as [quosures][rlang::topic-quosure]. To pass values
#' programmatically, use the [injection operator][rlang::!!] like so:
#'
#' ``` r
#' value <- 1
#' <%= modeltype %>(argument = !!value)
#' ```
topepo/parsnip documentation built on April 16, 2024, 3:23 a.m.