-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (27 loc) · 835 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
# Driver script
# Nazli Ozum Kafaee, Prash Medirattaa, Avinash Prabhakaran, April 2018
# Script automates reading, processing and visualising data
#
# usage: make all
all: report
#Reads the data in from the spreadsheets
#read_data:
# Rscript src/read_data.R
#Cleans raw data and prepares data for analysis
clean_data:
Rscript src/clean_data.R
#To generate bar and proportion plots
eda: clean_data
Rscript src/get_plots.R
#To create the report.
report: eda
Rscript -e 'rmarkdown::render("src/report.Rmd", output_dir = "results")'
Rscript -e 'rmarkdown::render("src/final_report.Rmd", output_dir = "results")'
Rscript -e 'rmarkdown::render("src/analysis.Rmd", output_dir = "results")'
#To delete all the files created.
#remove: clean
#rm data/*
#To delete all the files created for analysis
clean:
rm docs/*
rm results/*