This is a Quarto website for the Analytics Workshop Hackathon.
Website files are located in the qmd/ directory:
qmd/index.qmd- Landing page introducing the hackathonqmd/setup.qmd- Setup instructions for R, RStudio, and project structureqmd/data.qmd- Data download pageqmd/task1.qmdthroughqmd/task10.qmd- Individual pages for each analytical taskqmd/_quarto.yml- Quarto website configurationqmd/styles.css- Custom CSS for stylingqmd/data/- Data files including:linelist.rds- Clean case linelist datasetgis/- GIS shapefile datasolutions/- Solution files for download (excluded from rendering)sitrep.qmd- Example situation report templatetask2_solution.qmdthroughtask10_solution.qmd- Solution files for tasks
scripts/generate_solutions.R- Script to extract "Example Report" sections from task files and generate solution files
Navigate to the qmd/ directory and build the website:
cd qmd
quarto renderOr from R (in the qmd directory):
quarto::quarto_render()The website will be built to the docs/ directory at the project root.
Note: Solution files in qmd/data/solutions/ are excluded from rendering (configured in _quarto.yml) as they are intended for download only, not for display on the website.
To preview the website locally:
quarto::quarto_preview()Or from the command line:
cd qmd
quarto previewTo generate solution files from task files, run the generate_solutions.R script:
source("scripts/generate_solutions.R")This script extracts the "Example Report" sections from task3.qmd through task10.qmd and creates corresponding solution files in qmd/data/solutions/. The solution files are configured with echo: false so code is hidden when rendered, making them suitable as reference solutions for participants.
To deploy the website to Posit Connect, use the deployment script:
source("deploy.R")See deploy.R for deployment instructions. The script uses encrypted credentials for secure deployment.
For information about the encryption setup and how to request access to use encrypted data, see ENCRYPTION.md.