-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
36 lines (26 loc) · 981 Bytes
/
Makefile
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
# Use this as the command for running R scripts
rscriptv := Rscript --vanilla
database-results = \
data-raw/child-info.csv \
data-raw/looks.csv.gz
screening-results = \
data/scores.csv \
data/screened.csv.gz
all: 04-gca-models.md 03-eyetracking-data.md 02-screen-data.md 01-download-data.md
04-gca-models.md: 04-gca-models.Rmd data/modeling.csv
$(rscriptv) -e 'rmarkdown::render("$<")'
03-eyetracking-data.md: 03-eyetracking-data.Rmd $(screening-results)
$(rscriptv) -e 'rmarkdown::render("$<")'
02-screen-data.md: 02-screen-data.Rmd $(database-results)
$(rscriptv) -e 'rmarkdown::render("$<")'
01-download-data.md: 01-download-data.Rmd
$(rscriptv) -e 'rmarkdown::render("$<")'
data/modeling.csv: 03-eyetracking-data.md
$(screening-results): 02-screen-data.md
$(database-results): 01-download-data.md
check: $()
$(rscriptv) -e 'list.files(pattern = "unnamed", recursive = TRUE, full.names = TRUE)'
clean:
rm -f *.html;
rm -f 0*.md;
rm -f assets/figure/*.png;