citHeader("To cite wbCorr in publications use:")

date <- meta[["Date/Publication"]]
if (is.null(date)) {
  date <- meta[["Date"]]
}
year <- if (is.null(date)) "2026" else substr(date, 1, 4)
note <- sprintf("R package version %s", meta$Version)
url <- "https://pascal-kueng.github.io/wbCorr/"
doi <- "10.5281/zenodo.20357592"

bibentry(bibtype = "Manual",
         title = "wbCorr: Bivariate Within- and Between-Cluster Correlations",
         author = c(person("Pascal", "Küng")),
         organization = "University of Zurich",
         year = year,
         note = note,
         url = url,
         doi = doi,
         textVersion = sprintf(
           "Küng, P. (%s). wbCorr: Bivariate Within- and Between-Cluster Correlations (%s). https://doi.org/%s",
           year,
           note,
           doi
         ))
