citHeader("To cite the 'gllvm' 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 = "gllvm: Generalized Linear Latent Variable Models",
         author = c(as.person("Jenni Niku"), as.person("Wesley Brooks"), as.person("Riki Herliansyah"), as.person("Francis K. C. Hui"), as.person("Pekka Korhonen"), as.person("Sara Taskinen"), as.person("Bert van der Veen"), as.person("David I. Warton")),
         year = year,
         note = vers,
         textVersion =
         paste("Niku, J., Brooks, W., Herliansyah, R., Hui, F. K. C., Korhonen, P., Taskinen, S., van der Veen, B., and Warton, D. I.  (",
               year,
               "). gllvm: Generalized Linear Latent Variable Models.",
               vers, ".", sep="")
)

bibentry(bibtype="Article",
         title = "gllvm - Fast analysis of multivariate abundance data with generalized linear latent variable models in R",
         author = c(as.person("Jenni Niku"), as.person("Francis K. C. Hui"), as.person("Sara Taskinen"), as.person("David I. Warton")),
    	 journal = "Methods in Ecology and Evolution",
         year     = "2019",
         volume      = "10",
          pages   = "2173-2182",
         textVersion =
         paste("Niku, J., Hui, F. K. C., Taskinen, S., and Warton, D. I. (2019).",
  	       "gllvm - Fast analysis of multivariate abundance data with generalized linear latent variable models in R.",
               "Methods in Ecology and Evolution, 10, 2173-2182.")
)

bibentry(bibtype="Article",
         title = "Analyzing environmental-trait interactions in ecological communities with fourth-corner latent variable models",
         author = c(as.person("Jenni Niku"), as.person("Francis K. C. Hui"), as.person("Sara Taskinen"), as.person("David I. Warton")),
         journal = "Environmetrics",
         year     = "2021",
         volume      = "32",
         pages   = "1-17",
         textVersion =
         paste("Niku, J., Hui, F. K. C., Taskinen, S., and Warton, D. I. (2021).",
         "Analyzing environmental-trait interactions in ecological communities with fourth-corner latent variable models.",
               "Environmetrics, 32, 1-17.")
)

bibentry(bibtype="Article",
         title = "Model-based ordination for species with unequal niche widths",
         author = c(as.person("Bert van der Veen"), as.person("Francis K. C. Hui"), as.person("Knut A. Hovstad"), as.person("Erik B. Solbu"), as.person("Robert B. O'Hara")),
         journal = "Methods in Ecology and Evolution",
         year     = "2021",
         volume      = "12",
         pages   = "1288-1300",
         textVersion =
         paste("van der Veen, B., Hui, F. K. C., Hovstad, K.A., Solbu, E.B., and O'Hara, R.B. (2021).",
         "Model-based ordination for species with unequal niche widths.",
               "Methods in Ecology and Evolution, 12, 1288-1300.")
)

bibentry(bibtype="Article",
         title = "Concurrent ordination: Simultaneous unconstrained and constrained latent variable modelling",
         author = c(as.person("Bert van der Veen"), as.person("Francis K. C. Hui"), as.person("Knut A. Hovstad"), as.person("Robert B. O'Hara")),
         journal = "Methods in Ecology and Evolution",
         year     = "2022",
         volume      = "00",
         pages   = "1-13",
         textVersion =
         paste("van der Veen, B., Hui, F. K. C., Hovstad, K.A., and O'Hara, R.B. (2022).",
         "Concurrent ordination: simultaneous unconstrained and constrained latent variable modelling.",
               "Methods in Ecology and Evolution, 00, 1-13.")
)
