Package: DSIR 0.11.0

DSIR: Data Science Infrastructure for Global Health

Supports global health data analysis, including a publication-ready 'ggplot2' theme, a 'flextable' defaults helper, a thin pie chart wrapper, built-in regional country-code datasets with a WHO region lookup helper, a geometric mean function for indicator aggregation, an average annual rate of reduction function for indicator progress tracking, direct age standardization against the bundled WHO 2026 Standard Population, period life-table construction, a snapshot helper for reproducible data pulls, and convenience clients for the World Health Organization Global Health Observatory (GHO) through its legacy OData API <https://ghoapi.azureedge.net/api/> or the public WHO xMart OData API <https://xmart-api-public.who.int/DATA_>, Global Health Estimates (GHE) through WHO xMart, and the United Nations Sustainable Development Goals (SDG) API <https://unstats.un.org/SDGAPI/swagger/>.

Authors:Shanlong Ding [aut, cre]

DSIR_0.11.0.tar.gz
DSIR_0.11.0.zip(r-4.7-any)DSIR_0.11.0.zip(r-4.6-any)DSIR_0.11.0.zip(r-4.5-any)
DSIR_0.11.0.tgz(r-4.6-any)DSIR_0.11.0.tgz(r-4.5-any)
DSIR_0.11.0.tar.gz(r-4.7-any)DSIR_0.11.0.tar.gz(r-4.6-any)
DSIR_0.11.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
DSIR/json (API)

# Install 'DSIR' in R:
install.packages('DSIR', repos = c('https://shanlong-who.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/shanlong-who/dsir/issues

Pkgdown/docs site:https://shanlong-who.github.io

Datasets:
  • afro_cty - WHO regional Member State ISO3 vectors
  • amro_cty - WHO regional Member State ISO3 vectors
  • emro_cty - WHO regional Member State ISO3 vectors
  • euro_cty - WHO regional Member State ISO3 vectors
  • pic_cty - Pacific Island Country ISO3 codes
  • searo_cty - WHO regional Member State ISO3 vectors
  • who_countries - WHO Member States with regional and Pacific classifications
  • who_std_pop - WHO 2026 Standard Population
  • wpro_cty - WHO regional Member State ISO3 vectors

On CRAN:

Conda:

5.73 score 3 stars 679 downloads 35 exports 69 dependencies

Last updated from:32e6bd6d02. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK172
source / vignettesOK266
linux-releaseOK166
macos-releaseOK108
macos-oldrelOK126
windows-develOK142
windows-releaseOK119
windows-oldrelOK124
wasm-releaseOK103

Exports:aarrage_standardizebind_indicatorsdsi_flextable_defaultsgeomeanggpieghe_causesghe_cleanghe_coverageghe_dataghe_dimensionsgho_cleangho_countgho_coveragegho_datagho_dimensionsgho_has_datagho_indicatorsiso3_to_m49iso3_to_regionlife_tablem49_to_iso3scale_x_dsi_colscale_y_dsi_colsdg_areassdg_cleansdg_coveragesdg_datasdg_dimensionssdg_goalssdg_indicatorssdg_targetssnapshottheme_dsitheme_dsi_facet

Dependencies:askpassbase64encbslibcachemclicpp11curldata.tabledigestdplyrevaluatefarverfastmapflextablefontawesomefontBitstreamVerafontLiberationfontquiverfsgdtoolsgenericsggplot2gluegtablehighrhtmltoolshttr2isobandjquerylibjsonliteknitrlabelinglifecyclemagrittrmemoisemimeofficeropensslpillarpkgconfigpurrrR6raggrappdirsRColorBrewerRcpprlangrmarkdownS7sassscalesstringistringrsyssystemfontstextshapingtibbletidyrtidyselecttinytexutf8uuidvctrsviridisLitewithrxfunxml2yamlzip

DSIR
WHO Member State metadata | Checking availability before fetching | Fetching indicator data from GHO | Step 1: Search for an indicator | Step 2: Fetch the data | Step 3: Clean the raw response | Aggregating indicators with geomean() | Plotting with theme_dsi() and theme_dsi_facet() | Single panel: theme_dsi() | Faceted: theme_dsi_facet() | Tables with dsi_flextable_defaults() | Working with SDG indicators | Keeping named SDG dimensions | Showing dimension meaning and source context | Combining GHO and SDG with bind_indicators() | Exploring series with sdg_coverage() | Where to next

Last update: 2026-10-07
Started: 2026-04-29

WHO xMart and Global Health Estimates
Discover GHO codes and preserve named dimensions | Discover GHE selections | Download selected measures | Reproducible pulls and revised estimates | WHO 2026 standard population

Last update: 2026-10-07
Started: 2026-10-06

Visualizing indicators
Example data | Trend lines with a confidence band | Breakdowns from dim1 / dim2 / dim3 | Forest-style country comparison | Dumbbell progress plot | Tracking progress with aarr()

Last update: 2026-07-02
Started: 2026-07-02

Readme and manuals

Help Manual

Help pageTopics
Average Annual Rate of Reduction (AARR)aarr
Directly Age-Standardized Rateage_standardize
Bind Cleaned Indicator Tibblesbind_indicators
Set DSIR Flextable Defaultsdsi_flextable_defaults
Geometric Meangeomean
Create a Pie Chart with ggplot2ggpie
Explore Global Health Estimates Causesghe_causes
Put GHE Estimates in the Unified DSIR Schemaghe_clean
Summarise Global Health Estimates Coverageghe_coverage
Fetch WHO Global Health Estimatesghe_data
Explore Global Health Estimates Dimensionsghe_dimensions
Tidy a GHO Data Framegho_clean
Count Observations for a GHO Indicator Filtergho_count
Summarise Per-Location Data Coverage of a GHO Indicatorgho_coverage
Fetch GHO Datagho_data
List Dimensions of a GHO Indicatorgho_dimensions
Check Whether a GHO Indicator Has Data for a Filtergho_has_data
List GHO Indicatorsgho_indicators
Convert ISO3 Codes to UN M49 Numeric Codesiso3_to_m49
Look Up the WHO Region for ISO3 Codesiso3_to_region
Period Life Table from Age-Specific Mortality Rateslife_table
Convert UN M49 Numeric Codes to ISO3 Codesm49_to_iso3
Pacific Island Country ISO3 codespic_cty
Continuous Scales for DSIR Bar / Column Chartsscale_dsi_col scale_x_dsi_col scale_y_dsi_col
List SDG Geographic Areassdg_areas
Tidy an SDG Data Framesdg_clean
Explore Series Coverage of an SDG Indicatorsdg_coverage
Fetch SDG Datasdg_data
List SDG Dimension Codes and Labelssdg_dimensions
List SDG Goalssdg_goals
List SDG Indicatorssdg_indicators
List SDG Targetssdg_targets
Snapshot an Expensive Expression to a Local Filesnapshot
DSIR ggplot2 theme — WHO publication-styletheme_dsi
DSIR ggplot2 theme for faceted plotstheme_dsi_facet
WHO Member States with regional and Pacific classificationswho_countries
WHO regional Member State ISO3 vectorsafro_cty amro_cty emro_cty euro_cty searo_cty who_region_vectors wpro_cty
WHO 2026 Standard Populationwho_std_pop