# Year of the package version. Date is not set in DESCRIPTION, so use the 
# publication date on CRAN, or the date the package was built for other installations.
year <- sub("-.*", "", c(meta$Date, meta$`Date/Publication`, sub(";.*", "", meta$Packaged))[1])
note <- sprintf("R package version %s", meta$Version)

bibentry(bibtype = "Manual",
         title = "{MAPA}: Multiple Aggregation Prediction Algorithm",
         author = c(person("Nikolaos", "Kourentzes"),
                    person("Fotios", "Petropoulos")),
         year = year,
         note = note,
         url = "https://CRAN.R-project.org/package=MAPA")

bibentry(bibtype = "Article",
         title={"Improving forecasting by estimating time series structural components across multiple frequencies"},
         author = c(person("Nikolaos", "Kourentzes"),
                    person("Fotios", "Petropoulos"),
                    person("Juan R.", "Trapero")),
         journal={"International Journal of Forecasting"},
         volume={30},
         number={2},
         pages="291--302",
         year={2014},
         publisher={"Elsevier"}
         )

bibentry(bibtype = "Article",
         title={"Forecasting with multivariate temporal aggregation: The case of promotional modelling"},
         author = c(person("Nikolaos", "Kourentzes"),
                    person("Fotios", "Petropoulos")),
         journal={"International Journal of Production Economics"},
         volume={181},
         pages="145--153",
         year={2016},
         publisher={"Elsevier"}
         )