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

bibentry(
  bibtype  = "Manual",
  title    = "surveyframe: Survey Instrument Workflows",
  author   = person("Mohammed Ali", "Sharafuddin",
                    email = "mohammedali.page@gmail.com",
                    role  = c("aut", "cre"),
                    comment = c(ORCID = "0000-0001-5247-2964")),
  year     = year,
  note     = paste("R package version", meta$Version),
  url      = "https://CRAN.R-project.org/package=surveyframe",
  doi      = "10.32614/CRAN.package.surveyframe"
)
