# NOT RUN {
library(tidymodels)
# setup a workflow without fitting
wf <-
workflow() %>%
add_recipe(recipe(qsec ~ wt, data = mtcars)) %>%
add_model(linear_reg())
# fit and predict 2000 bootstrap resampled models to mtcars
set.seed(123)
wf %>%
predict_boots(n = 2000, training_data = mtcars, new_data = mtcars)
# }
Run the code above in your browser using DataLab