Skip to content

feat: Shiny app for prep1cho#10

Merged
aslamht merged 5 commits intomainfrom
feature/5-shiny-app
Mar 23, 2026
Merged

feat: Shiny app for prep1cho#10
aslamht merged 5 commits intomainfrom
feature/5-shiny-app

Conversation

@aslamht
Copy link
Contributor

@aslamht aslamht commented Mar 23, 2026

Summary

  • Three-panel Shiny app (Invoer / Pipeline / Uitvoer) for exploring and running the prep1cho pipeline
  • Auto-detects BRIN and academic year from uploaded data via new detect_metadata() utility
  • Adds run_app() launcher, fixes YYYYMMDD date parsing, removes manual create_synthetic parameter

Closes #5

Test plan

  • Run prep1cho::run_app() and upload a raw EV file
  • Verify BRIN and year are auto-detected in the Pipeline panel
  • Run pipeline and check output in Uitvoer panel
  • Download output CSV and verify contents

aslamht added 5 commits March 23, 2026 12:16
run_pipeline() now detects the academic year (max inschrijvingsjaar) and
institution BRIN (most frequent instellingscode) from the raw data when
not explicitly provided. create_synthetic is no longer a parameter --
it's automatically enabled only for the demo BRIN "21XX".
Pipeline tab no longer asks for year, BRIN, or synthetic toggle.
These are auto-detected from the uploaded EV data and shown to the
user before running. Relies on the updated run_pipeline() defaults.
Adds R/run_app.R with exported run_app() function using cli::cli_abort
for error messages. Adds shiny, bslib, DT, ggplot2 to Suggests and cli
to Imports in DESCRIPTION. Exports run_app in NAMESPACE.
Source dates arrive as numeric integers (e.g. 20080901) but were parsed
with %d/%m/%Y format, causing silent conversion to garbage dates like
56949-08-22. Adds parse_date_flexible() that detects numeric input and
parses as %Y%m%d. Also adds INS_Datum_tekening_diploma to the
conversion block.
Single source of truth for detecting BRIN and year from enrollment data.
Used by both run_pipeline() and the Shiny app. Removes duplicated
detection logic from pipeline.R and app.R.
@aslamht aslamht merged commit 79891d8 into main Mar 23, 2026
0 of 2 checks passed
@aslamht aslamht deleted the feature/5-shiny-app branch March 23, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shiny app voor prep1cho

1 participant