Skip to content

Instantly share code, notes, and snippets.

@FavioVazquez
Created July 17, 2018 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FavioVazquez/475538474a280841893e3ddc2f73e17c to your computer and use it in GitHub Desktop.
Save FavioVazquez/475538474a280841893e3ddc2f73e17c to your computer and use it in GitHub Desktop.
---
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