citHeader("To cite glmbayes in publications use the first entry for software; cite Nygren and Nygren (2006) for likelihood subgradient methodology.")

year <- sub("-.*", "", meta$Date)
if (!nzchar(year)) {
  year <- format(Sys.Date(), "%Y")
}

c(
  bibentry(
    bibtype  = "Manual",
    title    = "{glmbayes}: Bayesian Generalized Linear Models (IID Samples)",
    author   = person("Kjell", "Nygren"),
    year     = year,
    note     = paste("R package version", meta$Version),
    url      = "https://CRAN.R-project.org/package=glmbayes"
  ),
  bibentry(
    bibtype  = "Article",
    title    = "Likelihood Subgradient Densities",
    author   = c(
      person("Kjell N.", "Nygren"),
      person("Lan M.", "Nygren")
    ),
    journal  = "Journal of the American Statistical Association",
    volume   = "101",
    number   = "475",
    pages    = "1144--1156",
    year     = "2006",
    doi      = "10.1198/016214506000000357"
  )
)
