-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
29 lines (22 loc) · 855 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
# author: Jordan Bourak & Tiffany Timbers
# date: 2021-11-22
all: results/horse_pop_plot_largest_sd.png \
results/horse_pops_plot.png \
results/horses_spread.csv \
reports/qmd_example.html \
reports/qmd_example.pdf
# generate figures and objects for report
results/horse_pop_plot_largest_sd.png results/horse_pops_plot.png results/horses_spread.csv: source/generate_figures.R
Rscript source/generate_figures.R --input_dir="data/00030067-eng.csv" \
--out_dir="results"
# render quarto report in HTML and PDF
reports/qmd_example.html: results reports/qmd_example.qmd
quarto render reports/qmd_example.qmd --to html
reports/qmd_example.pdf: results reports/qmd_example.qmd
quarto render reports/qmd_example.qmd --to pdf
# clean
clean:
rm -rf results
rm -rf reports/qmd_example.html \
reports/qmd_example.pdf \
reports/qmd_example_files