This repo contains all scripts and documentation related to out exploratory work on Housing Choice Voucher (Section 8) assistance eligibility across Delaware.
Housing Choice Voucher (Section 8) provides housing for families in a housing crisis in the US. However, the program struggles to provide vouchers to most qualified families. We built this app to help people learn how well the program is doing in Delaware.
We draw data from HUD and ACS.
We make the source code of this app publicly available so that anyone can see how we combine data and report findings. Please feel free to submit an issue if you notice any bugs or have suggestions.
voucher-eligibility/
├─ data/
│ ├─ raw/
│ ├─ processed/
├─ docs/ # EDA is hosted here as a GitHub page
├─ src/ # Source code (mainly .R files)
├─ app/ # Shiny app
CENSUS_API_KEY
: API key to the Census APIFor deployment to Shinyapps.io:
SHINY_ACC_NAME
: Account name on shinyTOKEN
: Token from ShinySECRET
: Secret from shinyMASTERNAME
: Name of shiny app on mainTESTNAME
: Name of shiny app on pull requestThere are two .Rprofile
files in this repository
.Rprofile
file in the app folder. This file will be loaded when opening the .Rproj
file on RStudio.app/
- the actual .Rprofile
file that sets up the environment for Python. This folder is being deployed to the shinyapps.io. And thus, the real .Rprofile
file will be loaded there as well.The .Rprofile
file sets the following environment variables:
VIRTUALENV_NAME
: Name for the virtual environment (default: voucher-eligibility-env
)
PYTHON_PATH
: $PATH to python (the script will look for python
on Windows, and python3
on Mac)
RETICULATE_PYTHON
: Path to python. The value is set only for shinyapps. On local, RStudio takes care of setting this value automatically and thus the scripts leaves it blank.