Note that model objects contain training data, except columns
ignored (patient_id in the example below). Therefore, if there is PHI in
the training data, the saved model object must be treated as PHI.
save_models issues a message saying as much.
save_models(x, filename = "models.RDS", sanitize_phi = TRUE) load_models(filename)
File path to save model to or read model from, e.g.
"models/my_models.RDS". Default for
Logical. If TRUE (default) training data is removed from
the model object before being saved. Removing training data is important
when sharing models that were trained with data that contain PHI. If
load_models returns the model_list which can be assigned to
any variable name