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

year <- sub(".*(2[[:digit:]]{3})-.*", "\\1", meta$Date, perl = TRUE)
vers <- paste("R package version", meta$Version)

bibentry(bibtype = "Manual",
         title = "texmex: Statistical modelling of extreme values",
         author = c(as.person("Harry Southworth"),
                             as.person("Janet E. Heffernan"), 
                             as.person("Paul D. Metcalfe")),
         year = year,
         note = vers,

         textVersion =
         paste0("Harry Southworth, Janet E. Heffernan and Paul D. Metcalfe (",year,"). ",
                "texmex: Statistical modelling of extreme values. ",
                vers, "."))
