OHA R Packages
Project Purpose
Create a common infratructure for data scientists and data analysts within USAID’s HIV program to use to improve efficiency, collaboration, version control, and reproducibility. Our packages are available for download from rOpenSci.
Overview
- gagglr - provides a check to users to ensure they are using the latest versions of the core OHA utility packages since they are not updated on regular intervals
- glamr - focuses on workflow improvements and authentication that is used in other packages
- gophr - provides utility functions for importing and working with PEPFAR structured datasets (PSDs)
- glitr - builds upon the ggplot2 framework, providing structured themes and colors for consistency across our visual products
- grabr - extend the utility functions in glamr, focusing primarily on API utility functions
- mindthegap - munges and provides an access point to tidy UNAIDS estimates and common visualizations
- tameDP - converts the PEPFAR Target Setting Tool (TST) into a common structure to mimic other PEPFAR structured datasets for usability
- themask - creates and makes available a dummy, masked dataset that mirrors PEPFAR structured datasets
- wavelength - handles High Frequency Reporting ETL
Outcomes
- Created and maintained a variety of open source, R packages to improve process workflows, automation, credential management, and data visualization
Lessons Learned
- Design efficient R packages
- Leverage unit test
- Leverage continuous integration via GitHub Actions
- Setup a R universe on rOpenSci
- Create package sites with full documentation and vignettes
- Reliance of GitHub Issues for tracking


