Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
title: "Example R Markdown drake file target"
author: Will Landau, Kirill Müller and Favio ;)
output: html_document
---
Run `make.R` to generate the output `report.pdf` and its dependencies. Because we use `loadd()` and `readd()` below, `drake` knows `report.pdf` depends on targets `fit`, and `hist`.
```{r content}
library(drake)
loadd(fit)
print(fit)
loadd(cor)
print(cor)
readd(hist)
readd(plot)
```
More:
- Walkthrough: [this chapter of the user manual](https://ropenscilabs.github.io/drake-manual/intro.html)
- Slides: [https://krlmlr.github.io/drake-pitch](https://krlmlr.github.io/drake-pitch)
- Code: `drake_example("main")`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.