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


citHeader("To cite airGR in publications use these two references:")

bibentry(bibtype     = "Article",
         title       = "Sequential data assimilation for streamflow forecasting: assessing the sensitivity to uncertinties and to updated variables of a conceptual hydrological model at basin scale",
         author      = c(as.person("G. Piazzi"), as.person("G. Thirel"), as.person("C. Perrin"), as.person("O. Delaigue")),
         journal     = "Water Resources Research",
         year        = "2021",
         volume      = {57},
         number      = {4},
         doi         = "10.1029/2020WR028390",
         textVersion =
           paste("Piazzi, G., Thirel, G., Perrin, C. and Delaigue, O.",
                 "(2021).",
                 "Sequential data assimilation for streamflow forecasting: assessing the sensitivity to uncertinties and to updated variables of a conceptual hydrological model at basin scale.",
                 "Water Resources Research,",
                 "57,",
                 "doi: 10.1029/2020WR028390.",
                 sep = " ")
)

bibentry(bibtype     = "Manual",
         title       = "{airGRdatassim}: Ensemble-Based Data Assimilation in {GR} Hydrological Models",
         author      = c(as.person("G. Piazzi"), as.person("O. Delaigue")),
         journal     = "R News",
         year        = year,
         note        = note,
         doi         = "10.32614/CRAN.package.airGRdatassim",
         url         = "https://CRAN.R-project.org/package=airGRdatassim",
         textVersion =
           paste0("Piazzi, G. and Delaigue, O. (",
                  year,
                  "). airGRdatassim: Ensemble-Based Data Assimilation in GR Hydrological Models. ",
                  note, ", ",
                  "doi: 10.32614/CRAN.package.airGRdatassim."
                  )
)
