citHeader("When using rugarch in publications, please cite:")

## R >= 2.8.0 passes package metadata to citation().
if(!exists("meta") || is.null(meta)) meta <- packageDescription("rugarch")

year <- sub("-.*", "", meta$Date)
note <- sprintf("R package version %s.", meta$Version)

bibentry(bibtype="Manual",
         title = "rugarch: Univariate GARCH models.",
         author = c("Alexios Galanos"),
         year         = year,
         note         = note,
         textVersion = 
         paste("Alexios Galanos",
               sprintf("(%s).", year),
               "rugarch: Univariate GARCH models.",
	       note),
	 header = "To cite the rugarch package, please use:"
)

