citHeader("To cite qviewparsR in publications, use:")

## `meta` is supplied by R when reading the CITATION (the package DESCRIPTION);
## fall back to the installed description so citation() also works standalone.
## Avoid packageVersion(), which errors while the package is not yet installed
## (e.g. during R CMD check --as-cran incoming-feasibility).
if (!exists("meta") || is.null(meta)) meta <- packageDescription("qviewparsR")
vers <- meta[["Version"]]
if (is.null(vers) || is.na(vers)) vers <- "unknown"

bibentry(
  bibtype = "Manual",
  title   = "qviewparsR: Read .Q-View Multiplex ELISA Project Files",
  author  = c(
    person("R.", "Heller",
           comment = c(ORCID = "0000-0001-8006-9742")),
    person("M.", "Mannes",
           comment = c(ORCID = "0009-0003-4875-8275"))
  ),
  year    = format(Sys.Date(), "%Y"),
  note    = sprintf("R package version %s", vers),
  url     = "https://github.com/CTTIR/qviewparsR"
)
