[Framework examples →](../)

# R data loader to generate a ZIP archive

View live: <https://observablehq.observablehq.cloud/framework-example-loader-r-to-zip/>

This Observable Framework example demonstrates how to write an R data loader that accesses penguin body size measurements, performs multiple linear regression, then outputs model estimates and predictions as two separate CSV files in a ZIP archive.

The data loader lives in [`src/data/penguin-mlr.zip.R`](./src/data/penguin-mlr.zip.R).
