hefpi
is a web application for the visual exploration of the World
Bank’s Health Equity and Financial Protection Indicators. It is
currently under active development.
You can install hefpi from github by running the following:
devtools::install_github('databrew/hefpi')
To work on developing this package, you’ll likely want to focus on the following files:
R/app_server.R
: The server-side codeR/app_ui.R
: The user interfacedev/run_dev.R
: The code you’ll use to run the app locally after
making changesTo deploy on a shiny server, simply place an app.R
file in a folder as
one normally would do, and populate that file with the following lines:
library(hefpi)
run_app()
In order to build this package and run the application correctly, one should:
git clone
https://github.com/databrew/hefpi
. devtools::install_github('databrew/hefpi')
Rscript dev/run_dev.R
from the command line or in Rstudio.The HEFPI dashboard is structured as a R package (created with golem https://cran.r-project.org/web/packages/golem/vignettes/a_start.html)
The primary files:
- dev/run_dev.R
: The code you'll use to run the app locally after making changes
- inst/app/www/*
: logos, fonts, and the custom.css
file that controls the CSS for the app.
- misc/guide.md
: AWS admin guide for setting up shiny app.
- data-raw/from_other/*
- data-raw/from_wb/*
- data-raw/from_website/*
- data-raw/raw_data.R
- data/*
- R/app_config.R
: Used to read insdie golem config file inst/golem-config.yml
- R/app_ui.R
: all ui modules (top level)
- note: the "By urban-rural" tab is a placeholder with no charts (to be added later).
R/app_server.R
: all server side modules (top level)
R/mod_dat.R
:
Data availability by indicator
R/mod_trends.R
R/mod_recent.R
R/mod_recent_sub.R
R/mod_dots.R
R/plot_theme_new.R
: plot theme functionAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.