## R >= 2.8.0 passes package metadata to citation().
if(!exists("meta") || is.null(meta)) meta <- packageDescription("gnm")
year <- sub("-.*", "", meta$Date)
note <- sprintf("R package version %s", meta$Version) 
url <- sprintf("https://cran.r-project.org/package=gnm", meta$Version) 

citEntry(entry="Manual",
    title = {"Generalized nonlinear models in R: An overview of the gnm package"},
    author = personList(as.person("Heather Turner"),
                        as.person("David Firth")),
    year = year,
    note = note,
    url = url,
    textVersion = paste(
      "Heather Turner and David Firth", sprintf("(%s).", year),
      "Generalized nonlinear models in R: An overview of the gnm package.",
      sprintf("(%s).", note), sprintf("(%s).", url))
)


