citHeader("To cite the Silhouette package in publications use:")

year <- if (!is.null(meta$`Date/Publication`)) {
  substr(meta$`Date/Publication`, 1, 4)
} else {
  format(Sys.Date(), "%Y")
}

bibentry(
  bibtype = "Manual",
  title = paste0("Silhouette: ", meta$Title),
  author = c(
    person(given = "Shrikrishna", family = "Bhat K",
           email = "skbhat.in@gmail.com",
           role = c("aut", "cre", "cph"),
           comment = c(ORCID = "0009-0000-6180-5783")),
    person(given = "C", family = "Kiruthika",
           role = "aut",
           comment = c(ORCID = "0000-0001-9655-702X"))
  ),
  year = year,
  note = paste("R package version", meta$Version),
  doi = "10.32614/CRAN.package.Silhouette",
  url = "https://kskbhat.github.io/Silhouette/"
)
