devPTIpack is an R package for building interactive, geo-spatial Project Targeting Index (PTI) dashboards using Shiny. Given administrative boundary shapefiles and a metadata workbook of socioeconomic indicators, it computes weighted composite scores across admin levels and serves them in a ready-to-deploy Shiny application — no front-end coding required.
Quick-start contents
| Step | What you do | Guide |
|---|---|---|
| 0 | Install the package & set up a new project folder | Step 0 — Setup |
| 1 | Prepare and validate shapefiles | Step 1 — Shapefiles |
| 2 | Compute zonal statistics (optional) | Step 2 — Zonal stats |
| 3 | Fill in the metadata Excel workbook | Step 3 — Metadata |
| 4 | Add HEX / hexagonal-grid data (optional) | Step 4 — HEX data |
| 5 | Compile and finalise the PTI data | Step 5 — Compile |
| 6 | Deploy to Shiny Server / Posit Connect | Step 6 — Deploy |
See the full Build-a-PTI overview and the data preparation reference for more detail.
Minimum working example
# Install
# remotes::install_github("worldbank/devPTIpack")
# Launch with built-in sample data (Ukraine)
library(devPTIpack)
launch_pti_onepage(
shp_dta = ukr_shp,
inp_dta = ukr_mtdt_full,
app_name = "Sample PTI"
)PTI methodology
| Resource | Description |
|---|---|
| Detailed methodology | Full technical write-up of the PTI score construction |
| Overview paper | High-level conceptual overview of the PTI framework |
| Past projects | Country applications and case studies |
Past PTI projects
Deployed PTI applications and country-level repositories are maintained under the wbPTI GitHub organisation:
Get help & contact
Bug reports and feature requests — open an issue on GitHub:
https://github.com/worldbank/devPTIpack/issues/newGeneral questions — reach out to the World Bank GeoPov team geopov/ on intranet, or reach out to: Nga Thi Viet Nguyen.
License
This project is licensed under the MIT License together with the World Bank IGO Rider. The Rider is purely procedural: it reserves all privileges and immunities enjoyed by the World Bank, without adding restrictions to the MIT permissions. Please review both files before using, distributing or contributing.