#' Add a list of recipes to a workflow
#'
#' @description
#' This function replicates the provided workflow, adding one of the
#' provided recipes to each replicate.
#'
#' @param x A `workflow` object.
#' @param recipes A list of `recipe` objects.
#' @param ... Arguments passed on to `workflows::add_recipe()`.
#'
#' @return A `wflist` of replicate workflows, one for each provided recipe.
#' @export
add_recipes <- function(x, recipes, ...) {
recipes %>%
purrr::map(function(y) workflows::add_recipe(x, y, ...)) %>%
structure(class = "wflist")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.