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

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


bibentry(bibtype = "Manual",
         title = "boral: Bayesian Ordination and Regression AnaLysis",
         author = c(as.person("Francis K.C. Hui")),
         year = year,
         note = vers,
         textVersion =
         paste("Hui, F. K. C. (",year,"). boral: Bayesian Ordination and Regression AnaLysis.", vers, ".", sep="")
         )

bibentry(bibtype = "Article",
         title = "boral: Bayesian Ordination and Regression Analysis of Multivariate Abundance Data in R.",
         author = c(as.person("Francis K. C. Hui")),
    	 journal = "Methods in Ecology and Evolution",
         year     = "2016",
         volume      = "7",
          pages   = "744--750",
         textVersion =
         paste("Hui, F. K. C. (2016)",
  	       "boral: Bayesian Ordination and Regression Analysis of Multivariate Abundance Data in R",
               "Methods in Ecology and Evolution, 7, 744-750.")
)

