code/00_clean_data.R
- Reads raw data from
data/PAASIM_2019.xlsxanddata/PAASIM_2020.xlsx - Cleans the data, combines both data sets to into one, and saves it as
output/data_clean.rdsin theoutput/folder
code/01_make_table1.R
- Reads cleaned data from
output/data_clean.rds - Generates Table 1 and saves it as
output/table_one.rdsin theoutput/folder
code/02_make_barplot.R
- Reads cleaned data from
output/data_clean.rds - Generates a bar plot and saves it as
output/barplot.pngin theoutput/folder
code/03_render_report.R
- Renders the R Markdown report
project4_report.Rmd - Saves the compiled report as
output/project4_report.config_default.htmlin thereport/folder
project4_report.Rmd
- Reads data, tables, and figures from the
output/folder - Displays results for the production report
- Ensure that the required raw data files
PAASIM_2019.xlsxandPAASIM_2020.xlsxare located in thedata/folder. - Run the following scripts in sequence:
code/00_clean_data.Rto clean the data, stack the data and generateoutput/data_clean.rdscode/01_make_table1.Rto generate Table 1 and save it asoutput/table_one.rdscode/02_make_barplot.Rto generate the bar plot and save it asoutput/barplot.pngcode/03_render_report.Rto render the R Markdown report and save the compiled report asoutput/project4_report.config_default.html
- Use the make final_report.htm command to run all of the scripts and the final report will be available in the
report/folder asproject4_report.config_default.html.
Use the command: make final_report.html
- Open Docker on your computer.
- Clone this repository to your local machine in the directory you plan to work from: git clone https://github.com/your-username/nam-of-repository.git
- To make the image in your local container use the command: make project_image
- To run the report use the command: docker run -v "$$(pwd)/report":/final_project/report final_project3
Link to docker image: https://hub.docker.com/r/erikacanda/final_image/tags
- For mac users run the command: make macreport/final_report.html
- For windows usersrun the command: make windowsreport/final_report.html