year <- if (!is.null(meta$Date)) sub("-.*", "", meta$Date) else format(Sys.Date(), "%Y")
note <- sprintf("R package version %s", meta$Version)

bibentry(
  bibtype     = "Misc",
  header      = "To cite the wehoop R package in publications, use:",
  title       = "wehoop: The SportsDataverse's R Package for Women's Basketball Data.",
  author      = c(
    person("Saiem", "Gilani"),
    person("Geoff", "Hutchinson")
  ),
  url         = "https://doi.org/10.32614/CRAN.package.wehoop",
  doi         = "10.32614/cran.package.wehoop",
  journal     = "CRAN: Contributed Packages",
  publisher   = "The R Foundation",
  year        = year,
  note        = note,
  textVersion = paste(
    "Saiem Gilani and Geoff Hutchinson.",
    "wehoop: The SportsDataverse's R Package for Women's Basketball Data.",
    "Retrieved from https://doi.org/10.32614/CRAN.package.wehoop"
  )
)
