citHeader("To cite package 'CAVIAR' in publications use:")

if(!exists("meta") || is.null(meta))  meta <- packageDescription("CAVIAR")
#year <- sub(".*(2[[:digit:]]{3})-.*", "\\1", meta$Date)
year <- substr(meta$Date, 1, 4)
vers <- paste("R package version", meta$Version)

citEntry(entry="Manual",
         title = "CAVIAR: cambial activity and wood formation - data manipulation, visualisation and analysis using R",
         author = personList(as.person("Cyrille B. K. Rathgeber")),
         year = year,
         note = vers,
         textVersion = paste("Cyrille B. K. Rathgeber (", year, ") Cambial activity and wood formation: data manipulation, visualisation and analysis using R. ", vers, ".", sep="")
	)

citEntry(entry="Article",
         title        = "Phenology of wood formation: Data processing, analysis and visualisation using R (Package CAVIAR)",
         author       = "Rathgeber C.B.K., Longuetaud F., Mothe F., Cuny H. & Le Moguedec G.",
         year         = 2011,
         journal      = "Dendrochronologia",
         volume       = "29",
         pages        = "139-149",
         textVersion = paste("Rathgeber C.B.K., Longuetaud F., Mothe F., Cuny H. & Le Moguedec G. (2011) Phenology of wood formation: data processing, analysis and visualisation using R. Dendrochronologia 29:139-149.")
)

citFooter("We have invested a lot of time and efforts in creating this package so please cite it properly when using it for data manipulation, visualisation or analysis.")