
year <- sub("-.*", "", meta$Date)
if(!length(year))
  year <- substr(Sys.Date(),1,4)
vers <- meta$Version
if(is.null(vers))
  vers <- packageVersion("hdrcde")
vers <- paste("R package version", vers)

citHeader("To cite the hdrcde package in publications, please use:")

bibentry(bibtype = "Manual",
  title = "{hdrcde}: Highest Density Regions and Conditional Density Estimation",
  author = "Rob J Hyndman and Jochen Einbeck and Matthew P Wand",
  year = year,
  note = vers,
  url = "https://pkg.robjhyndman.com/hdrcde/")
