This is a little out of date now, but you can check out the very end of this example training script for an example approach.
Some things I would do definitely as of today:
- Use
extract_workflow()
to get the trained workflow out of thelast_fit()
object. - (Optional) Use butcher on the workflow for models that aren't already as streamlined as the one used for the demonstration.
- Probably use
readr::write_rds()
because I like the defaults better.