This repository was archived by the owner on Dec 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME.Rmd
More file actions
59 lines (48 loc) · 1.3 KB
/
README.Rmd
File metadata and controls
59 lines (48 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
output:
github_document:
html_preview: false
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# [remake](https://github.com/richfitz/remake) tutorial https://goo.gl/fnUyVk
1. [The basics](01-basics#readme)
1. [Adding spice](02-spice#readme)
1. [How to prepare vegetables?](03-vegetables#readme)
1. [Where to buy?](04-supermarket#readme)
1. [Working with `remake` projects](05-editing#readme)
1. [Marinating the meat](06-custom#readme)
1. [Reporting](07-knitr#readme)
1. [A tofu ragout](08-tofu#readme)
1. [Further steps](09-freeride#readme)
## Prerequisites
```r
install.packages("remotes") # if not yet installed
remotes::install_github(c("richfitz/remake", "krlmlr/cooking"))
install.packages("rmarkdown") # optionally, for the "Reporting" exercise
```
## Test
Run in a fresh R session, this should complete without error:
```{r}
test <- function() {
temp_dir <- tempfile()
dir.create(temp_dir)
old <- setwd(temp_dir)
on.exit(setwd(old))
writeLines(
c(
"packages:", "- cooking", "targets:", " all:", " depends: chopped_meat",
" chopped_meat:", " command: chop(I('raw_meat.csv'))"
),
"remake.yml"
)
remake::make()
}
test()
```