Skip to content

Shiny app: explore data for types of potentially-mitigatable activity (TPMAs)

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

The-Strategy-Unit/tpma-explorer

Repository files navigation

tpma-explorer

Project Status: Active – The project has reached a stable, usable state and is being actively developed.

An app to explore opportunities to reduce hospital care, using data for Types of Potentially-Mitigatable Activity (TPMAs).

The app is deployed openly to Posit Connect with no access requirements.

For developers

This section is aimed at maintainers of the tool who work for The Strategy Unit Data Science team.

Run and deploy

The app is made with Shiny and is an R package following the nolem approach.

To run the app, you must:

  • create an .Renviron file from the .Renviron.example template (restart R after making changes to this file)
  • run devtools::install_deps(dependencies = TRUE) to install required dependencies from the DESCRIPTION
  • run dev/app.R to launch the app locally for development purposes
  • run dev/deploy.R to deploy the app to Posit Connect when ready

Data

Underlying data is generated via the NHP inputs-data pipeline in the nhp_data repository and is read into the app from the relevant Azure container (named in the AZ_CONTAINER_INPUTS environment variable).

Files

In R/ you can find:

  • Shiny modules (server and UI components) that are stored in mod_*.R scripts
  • functions to help prepare data in utils_*.R scripts
  • logic for user facing outputs (plots, tables) in fct_*.R scripts

In inst/ you can find:

  • golem-config.yaml, which contains configuration (copied from nhp_inputs)
  • lookup data files in app/data/
  • Markdown files under app/text/, which contain body and tooltip text

About

Shiny app: explore data for types of potentially-mitigatable activity (TPMAs)

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages