Nothing
#' Control object for a workflow
#'
#' `control_workflow()` holds the control parameters for a workflow.
#'
#' @param control_parsnip A parsnip control object. If `NULL`, a default control
#' argument is constructed from [parsnip::control_parsnip()].
#'
#' @return
#' A `control_workflow` object for tweaking the workflow fitting process.
#'
#' @export
#' @examples
#' control_workflow()
control_workflow <- function(control_parsnip = NULL) {
control_parsnip <- check_control_parsnip(control_parsnip)
data <- list(
control_parsnip = control_parsnip
)
structure(data, class = "control_workflow")
}
#' @export
print.control_workflow <- function(x, ...) {
cat("<control_workflow>")
invisible()
}
check_control_parsnip <- function(x, ..., call = caller_env()) {
check_dots_empty()
if (is.null(x)) {
x <- parsnip::control_parsnip()
}
if (!inherits(x, "control_parsnip")) {
abort("`control_parsnip` must be a 'control_parsnip' object.", call = call)
}
x
}
is_control_workflow <- function(x) {
inherits(x, "control_workflow")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.