-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile
31 lines (24 loc) · 866 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
# report-associated rules
dxafinalreport.html: dxafinalreport.Rmd code/04_render_dxa_report.R \
output/table_one.rds \
output/02_adiposity_graph.png \
output/03_android_gynoid_graph.png
Rscript code/04_render_dxa_report.r
code/04_render_dxa_report.r: dxafinalreport.Rmd
.PHONY: install
install:
Rscript -e "renv::restore(prompt=FALSE)"
#Docker-associated rules
PROJECTFILES= output/table_one.rds \
output/02_adiposity_graph.png \
output/03_android_gynoid_graph.png\
makefile \
dxafinalreport.Rmd
RENVFILES = renv/activate.R renv.lock
# rule to build image
dxaimage: Dockerfile $(PROJECTFILES) $(RENVFILES)
docker build -t dxaimage .
touch $@
# rule to build final report in Docker
report/dxafinalreport.html: dxaimage
docker run -v "$$(pwd)/dxafinalreport:/report/dxafinalreport" arianaparquetteemory/finaldata550:dxaimage