-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 831 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 831 Bytes
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
# Search path
VPATH = data data-raw eda reports scripts
# Processed data files
DATA = birds.rds collisions.rds light_mp.rds bird_collisions_light.rds
# EDA studies
EDA = birds.md collisions.md light_mp.md bird_collisions_light.md
# Reports
REPORTS = report.md
# All targets
all : $(DATA) $(EDA) $(REPORTS)
# Data dependencies
birds.rds : birds.txt
collisions.rds : collisions.csv
light_mp.rds : light_mp.csv
bird_collisions_light.rds : birds.rds collisions.rds light_mp.rds
# EDA study and report dependencies
birds.md : birds.rds
collisions.md : collisions.rds
light_mp.md : light_mp.rds
bird_collisions_light.md : bird_collisions_light.rds
report.md : bird_collisions_light.rds
# Pattern rules
%.rds : %.R
Rscript $<
%.md : %.Rmd
Rscript -e 'rmarkdown::render(input = "$<", output_options = list(html_preview = FALSE))'