Created
July 17, 2018 20:43
-
-
Save FavioVazquez/475538474a280841893e3ddc2f73e17c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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