citHeader("To cite the DSIR package in publications, use:")

## `meta` is DSIR's DESCRIPTION as a named list. Version is always present;
## fall back gracefully so citation() never errors on an older field set.
version <- if (!is.null(meta$Version)) meta$Version else "0.9.0"

bibentry(
  bibtype  = "Manual",
  title    = "{DSIR}: Data Science Infrastructure for Global Health",
  author   = person(
    given = "Shanlong", family = "Ding",
    comment = c(ORCID = "0000-0001-9048-6670")
  ),
  year     = "2026",
  note     = sprintf("R package version %s", version),
  url      = "https://CRAN.R-project.org/package=DSIR",
  key      = "DSIR-package"
)
