year <- if (!is.null(meta$Date)) sub("-.*", "", meta$Date) else format(Sys.Date(), "%Y")
ver  <- meta$Version

bibentry(
  bibtype = "Manual",
  title   = "edetect: Anytime-Valid Control Charts with E-Detectors",
  author  = c(
    person("André",     "Leite",  email = "leite@castlab.org", role = c("aut", "cre")),
    person("Raydonal",  "Ospina", email = "raydonal@castlab.org", role = "aut"),
    person("Cristiano", "Ferraz", email = "cferraz@castlab.org", role = "aut")
  ),
  year    = year,
  note    = sprintf("R package version %s", ver),
  url     = "https://github.com/castlaboratory/edetect",
  textVersion = paste0(
    "Leite, A., Ospina, R., & Ferraz, C. (", year,
    "). edetect: Anytime-Valid Control Charts with E-Detectors. ",
    "R package version ", ver, ". https://github.com/castlaboratory/edetect"
  )
)
