Code Monkey home page Code Monkey logo

datacat's Introduction

hefpi

Lifecycle: experimental

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.

Installation

You can install hefpi from github by running the following:

devtools::install_github('databrew/hefpi')

Development

To work on developing this package, you’ll likely want to focus on the following files:

  • R/app_server.R: The server-side code
  • R/app_ui.R: The user interface
  • dev/run_dev.R: The code you’ll use to run the app locally after making changes

Deploy

To 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()

When re-deploying, you won’t need to re-do the above. But you will need to remove the previous iteration of the app, reinstall, and restart the shiny server.

sudo su - -c "R -e \"remove.packages('hefpi')\""
sudo su - -c "R -e \"devtools::install_github('databrew/hefpi', dependencies = TRUE, force = TRUE)\""
sudo systemctl restart shiny-server

Reproducing this package

In order to build this package and run the application correctly, one should:

  1. Clone this repository: git clone https://github.com/databrew/hefpi.
  2. Populate the data-raw/from_web directory with the following two files (supplied directly from the WB): (a) hefpi_full_database.dta and (b) Indicator_description.xlsx.
  3. Populate the data-raw/from_website directory with the following three files (taken from the HEFPI website): (a) HEFPICountry.csv, (b) HEFPIData.csv, and (c) HEFPISeries.csv.
  4. Run the script in the same directory to generate R-compatible data files: Rscript raw_data.R
  5. Run Rscript dev/run_dev.R

datacat's People

Contributors

joebrew avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.