-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
28 lines (21 loc) · 1.06 KB
/
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
FluRSV_Report.html: FluRSV_Report.Rmd code/03_render_report.R data regression
Rscript code/03_render_report.R
data: code/01_data_cleaning.R data/rsv_age.csv data/rsv_race.csv data/rsv_epicurve.csv data/flu_age.csv data/flu_race.csv data/flu_epicurve.csv
Rscript code/01_data_cleaning.R
regression: code/02_regression_analysis.R
Rscript code/02_regression_analysis.R
.PHONY: clean
clean:
rm -f output/*.rds && rm -f FluRSV_Report.html
.PHONY: install
install:
Rscript -e "renv::restore(prompt=FALSE)"
PROJECTFILES = FluRSV_Report.Rmd code/01_data_cleaning.R code/02_regression_analysis.R code/03_render_report.R data/rsv_age.csv data/rsv_race.csv data/rsv_epicurve.csv data/flu_age.csv data/flu_race.csv data/flu_epicurve.csv Makefile README.md .gitignore
RENVFILES = renv.lock renv/activate.R renv/settings.json .Rprofile
# Project Docker Image
resp_image: Dockerfile $(PROJECTFILES) $(RENVFILES)
docker build -t resp_image .
touch $@
# Run Report via Public Docker Image
docker-resp-report:
docker run -v "$$(pwd)"/report:/project/report pragativprasad/resp_image