citHeader("To cite metabom8, please use:")

ver <- meta$Version

year <- if (!is.null(meta$Date) && !is.na(meta$Date)) {
  format(as.Date(meta$Date), "%Y")
} else {
  format(Sys.Date(), "%Y")
}

bibentry(
  bibtype = "Manual",
  title   = "metabom8: A High-Performance R Package for Metabolomics Modeling and Analysis",
  author  = person(
    given = "Torben",
    family = "Kimhofer",
    email = "tkimhofer@gmail.com",
    role = c("aut", "cre"),
    comment = c(ORCID = "0000-0001-7158-9930")
  ),
  year = year,
  note = paste("R package version", ver),
  doi  = "10.18129/B9.bioc.metabom8",
  url  = "https://tkimhofer.github.io/metabom8/",
  textVersion = paste0(
  "Kimhofer T (", year, "). metabom8: A High-Performance R Package for ",
  "Metabolomics Modeling and Analysis (R package version ", ver, "). ",
  "https://doi.org/10.18129/B9.bioc.metabom8"
  )
)
