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

citEntry(entry = "Manual",
         title = {"HH: Statistical Analysis and Data Display: Heiberger and Holland."},
         author = {"Richard M. Heiberger"},
         year = year,
         note = note,
         url="https://CRAN.R-project.org/package=HH",
         header="To cite package 'HH' in publications use:",
         textVersion  =
         paste("Richard M. Heiberger", sprintf("(%s).", year),
               "HH: Statistical Analysis and Data Display: Heiberger and Holland.",
               paste(note, ".", sep=""),
               "URL https://CRAN.R-project.org/package=HH")
)

citEntry(entry = "Book",
         title = {"Statistical Analysis and Data Display:
               An Intermediate Course with Examples in {R}"},
         author = {"Richard M. Heiberger and Burt Holland"},
         year = {"2015"},
         publisher = 	 {"Springer-Verlag, New York"},
         edition = 	 {"Second"},
         header="To cite the HH book (second edition) in publications use:",
         url={"http://www.springer.com/us/book/9781493921218"},
         textVersion  =
         paste("Richard M. Heiberger and Burt Holland (2015).",
               "Statistical Analysis and Data Display: An Intermediate Course with Examples in R.",
               "Springer-Verlag, New York.",
               "URL http://www.springer.com/us/book/9781493921218")
)

citEntry(entry = "Book",
         title = {"Statistical Analysis and Data Display:
               An Intermediate Course with Examples in {S-Plus}, {R}, and {SAS}"},
         author = {"Richard M. Heiberger and Burt Holland"},
         year = {"2004"},
         publisher = 	 {"Springer-Verlag, New York"},
         edition = 	 {"First"},
         header="To cite the HH book (first edition) in publications use:",
         url={"http://www.springer.com/us/book/9781441923202"},
         textVersion  =
         paste("Richard M. Heiberger and Burt Holland (2004).",
               "Statistical Analysis and Data Display: An Intermediate Course with Examples in S-Plus, R, and SAS.",
               "Springer-Verlag, New York.",
               "URL http://www.springer.com/us/book/9781441923202")
)



citEntry(entry = "Article",
         title        = "Design of Diverging Stacked Bar Charts for Likert Scales and Other Applications",
         author       = personList(as.person("Richard M. Heiberger"),
           as.person("Naomi B. Robbins")),
         journal      = "Journal of Statistical Software",
         year         = "2014",
         volume       = "57",
         number       = "5",
         pages        = "1--32",
         url          = "http://www.jstatsoft.org/v57/i05/",
         header="To cite likert from HH in publications use:",

         textVersion  =
         paste("Richard M. Heiberger, Naomi B. Robbins (2014).",
               "Design of Diverging Stacked Bar Charts for Likert Scales and Other Applications.",
               "Journal of Statistical Software, 57(5), 1-32.",
               "URL http://www.jstatsoft.org/v57/i05/.")
)

