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

bibentry(
  bibtype = "Manual",
  title   = "shewhartr: Statistical Process Control with Tidyverse-Native Workflows",
  author  = c(
    person("André",     "Leite",        email = "leite@castlab.org",
           role = c("aut", "cre")),
    person("Hugo",      "Vasconcelos",  email = "hugo.vasconcelos@ufpe.br",
           role = "aut"),
    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://castlaboratory.github.io/shewhartr/",
  textVersion = paste0(
    "Leite, A., Vasconcelos, H., Ospina, R., & Ferraz, C. (", year,
    "). shewhartr: Statistical Process Control with Tidyverse-Native ",
    "Workflows. R package version ", ver,
    ". https://castlaboratory.github.io/shewhartr/"
  )
)
