Skip to content

DSIR

0.11.0Package record

Data Science Infrastructure for Global Health

0packages dependsuggested by 2
2.8Kdownloads / year
86.5%test coverage
13/13flavors OK

Overview

About

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/.

Changes in 0.11.0

WHO data infrastructure

  • GHO retains the legacy OData API as its compatibility default and adds the public production WHO xMart API. An internal provider adapter maps the official indicator directory, download routes, geography, numeric measure families and named dimensions to DSIR fields. Existing arguments remain; dimensions adds exact named filters. The public xMart directory covers a different set of codes and vintages than the legacy catalog. Unknown codes warn; no automatic fallback occurs.
  • All six GHO query functions accept backend = "legacy" or "xmart". An explicit argument overrides DSIR.who_backend for that call without changing the option; an unset option defaults to legacy. GHE always uses xMart. DSIR.who_base_url accepts a compatible HTTPS xMart origin. Reference caches are session-only, expire after ten minutes and are scoped to provider/host.
Show all changes in 0.11.0Hide the rest of the changes in 0.11.0
  • WHO downloads verify row counts, page consistency and unique identifiers. Incomplete downloads are discarded. Long filters use the public /$query POST endpoint. Compact list filters and batched dimension discovery respect the production query limits. A source-row limit prevents accidental bulk pulls.
  • xMart queries retry HTTP 200 HTML error pages within the existing three-attempt limit. If the service still returns HTML, the warning identifies a service failure rather than a JSON parsing problem. Failed catalogs are not cached.
  • gho_clean(keep_dimensions = TRUE) retains named xMart dimensions in addition to dimension types. Metadata retention adds units, measure fields and a row-level provider column. Both GHO backends record retrieval provenance; cleaning resolves missing labels with the recorded provider, even after the session default changes. Unknown imported origins stay NA. The default remains the unified 15-column core.
  • GHO distinguishes absent directory codes, successful empty selections, and request or parsing failures. Legacy HTTP 404 responses trigger a small directory check before a code is reported absent. Valid empty observations produce an informational message; failures warn and retain empty/NA contracts.

Global Health Estimates

  • Add ghe_data(), ghe_causes(), ghe_dimensions(), ghe_coverage() and ghe_clean(), using DEX_CMS/GHE_FULL. Exact geography, year, sex, age, cause and friendly measure filters preserve uncertainty bounds and hierarchy. Cause grouping is not presented as a parent identifier. Rates do not invent uncertainty bounds. Named context can be retained when binding cleaned data.
  • Discovery uses official references and small filtered code-list slices, avoiding expensive grouping of the full GHE database. Live tests require explicit opt-in and are skipped on CRAN.
  • Vignette network examples are displayed without execution by default. This keeps package builds independent of temporary API availability.

Standard population: intentional behavior change

  • Beginning with DSIR 0.11.0, who_std_pop uses the WHO 2026 Standard Population (WHO/HSA/DDA/GHE/2026.4, Table 1). Its 18 groups run from 0-4 to 85+. Published percentages sum to 100.02 and are explicitly normalized to 100; the derived standard million sums to 1,000,000 without integer rounding. The four column names remain, but std_million is now numeric. No old population object is retained. Align input ages before standardizing.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.1 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-10-18
  • ERROR12 OK, 1 ERROR2026-10-07
  • OK9 OK2026-08-28
  • ERROR12 OK, 1 ERROR2026-08-12
  • OK13 OK2026-08-05
Show 6 earlier changesHide 6 earlier changes
  • ERROR12 OK, 1 ERROR2026-07-30
  • OK13 OK2026-06-29
  • ERROR12 OK, 1 ERROR2026-06-25
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK8 OK2026-04-22
Advisories

none known

Documentation

In release 0.11.0
READMEYes · 1,942 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 0.11.0Citation fileYes · computed when R runs itWebsiteYes · pkgdown
Help pages
39 (1 internal)includes a package overview page
Examples that run
45%17 run in a plain check · 21 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
93%
Return-value docs
100%
Help pages citing references
5%

Also includes 1 demo script (run with demo())

Downloads

2.8K
CRAN downloads in the past year
Rank #6,568 · ~8/day · ~230/mo
Daily download trend is not available in this view yet.
66830 days
1.3K90 days
2.8K1 year
Compare downloads with other packages →
Also on60 r2u3 autocran

Repository

3Stars
0Forks
0Open issues
0Open PRs
1Releases
64Commits
1Commit identities
64 commits · Last activity 2026-10-18 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-06-19 · 12026-09-19 · 3
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/shanlong-who/dsir on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-10-13 · The repository has a site deploy workflow

pkgdown site last built 2026-10-13

Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen on or before 2026-04-15
    Seen in the repository: .claude, .claude-plugin, .claude/skills, CLAUDE.md
    Named in .Rbuildignore: .claude, .claude-plugin, CLAUDE.md
    Named in .gitignore: .claude, .claude/skills
    Commits: some crediting it in the message, count not recorded
  • GitHub Copilotfirst seen 2026-07-05
    Seen in the repository: .github/skills
Shared conventions any agent may read, so they name no particular tool.
Seen in the repository: AGENTS.md
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

Installing DSIR adds 69 packages (40 with compiled code, 65 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 2
Suggests, most downloaded first

Datasets

People & History

People (1)
Author, Maintainer · added in 0.7.0

Maintainer since 0.2.0 (2026)

Listed in earlier versions (1)
Shanlong WHO
no longer listed · 0.2.0
Releases (7)

Pick two releases to compare their code metrics.

  • 0.11.0Latest
    record
    2026-10-12 · current release · diff ↗ ·
    added 5 exports
    ghe_causes, ghe_clean, ghe_coverage, ghe_data, ghe_dimensions
  • 0.10.0
    record
    2026-10-01 · diff ↗ ·
    added 1 export
    sdg_dimensions
  • unarchivedReturned to CRAN
    2026-08-28
  • 0.9.0
    record
    2026-08-28 · diff ↗ ·
    added 3 exports
    age_standardize, life_table, snapshot
  • archivedRemoved from CRAN
    2026-08-26
    policy violation On Internet access
  • 0.8.0
    record
    2026-05-23 · diff ↗ ·
    added 1 export
    aarr
  • 0.7.1
    record
    2026-05-23 · diff ↗
  • 0.7.0
    record
    2026-05-21 · diff ↗ ·
    added 14 exports
    bind_indicators, geomean, gho_clean, gho_count, gho_coverage, gho_has_data, iso3_to_m49, iso3_to_region, m49_to_iso3, scale_x_dsi_col, scale_y_dsi_col, sdg_clean, sdg_coverage, theme_dsi_facet
  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.0
    record
    2026-04-21
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-04-21
Total releases
7 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
5.7 KB / 9 files
Download size
285 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("DSIR")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for DSIR version 0.11.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy