Scope
Fitted model objects in R often carry more than they need for prediction. A glm object keeps the training data, the fitted values, the residuals, and the environment of its formula. That is fine for a single model. It adds up when resample…

Continue reading: Shrink stored models with …