The-Strategy-Unit / nhp_evidence_maps

Shiny app: NHP evidence map
https://connect.strategyunitwm.nhs.uk/nhp_evidence_map/
Other
1 stars 0 forks source link

Refactor taxonomy code to avoid reading the pin twice #76

Closed matt-dray closed 3 months ago

matt-dray commented 3 months ago

Currently the app_server.R code passes evidence data into each tab's server module. Except for the taxonomy tab, in which the pin is read a second time and wrangling is done separately.

Refactor so that the taxonomy data is isolated from the pinned data and passed into the taxonomy server. Refactor wrangling functions to limit repetition.