## The citation year is PINNED to the release year, not derived from the
## current date. DESCRIPTION has no Date field, so the previous fallback
## made the same package version cite as a different year every calendar
## year, and drift from the bibtex block published in README.md.
year <- 2020
note <- sprintf("R package version %s", meta$Version)

bibentry(
  bibtype  = "Misc",
  header   = "To cite the sportyR R package in publications, use:",
  key      = "drucker_sportyR",
  author   = person("Ross", "Drucker", email = "ross.a.drucker@gmail.com",
                    comment = c(ORCID = "0000-0002-0688-0235")),
  title    = "sportyR: Plot Scaled 'ggplot' Representations of Sports Playing Surfaces.",
  url      = "https://sportyR.sportsdataverse.org/",
  doi      = "10.32614/CRAN.package.sportyR",
  year     = year,
  note     = note,
  textVersion = paste0(
    "Ross Drucker (", year, "). sportyR: Plot Scaled 'ggplot' Representations ",
    "of Sports Playing Surfaces. ", note,
    ". Retrieved from https://sportyR.sportsdataverse.org/"
  )
)
