year <- sub("-.*", "", meta$Date)
if(!length(year))
    year <- format(Sys.Date(), "%Y")

vers <- meta$Version
if(is.null(vers))
  vers <- packageVersion("gratis")
vers <- paste("R package version", vers)

citHeader("To cite the gratis package in publications, please use:")
bibentry(bibtype = "Manual",
         title    = "{gratis}: An R package for {GeneRAting TIme Series} with diverse and controllable characteristics",
         author   = c(as.person("Yanfei Kang"),
                      as.person("Feng Li"),
                      as.person("Rob J Hyndman"),
                      as.person("Mitchell O'Hara-Wild"),
                      as.person("Bocong Zhao")),
         year     = year,
         note     = vers,
         url      = "https://github.com/ykang/gratis")

bibentry(bibtype = "Article",
         title    = "{GRATIS}: {GeneRAting TIme Series} with diverse and controllable characteristics",
         author = c(as.person("Yanfei Kang"),
                    as.person("Rob J Hyndman"),
                    as.person("Feng Li")),
         journal  = "Statistical Analysis and Data Mining",
         year     = 2020,
         volume   = 13,
         number   = 4,
         pages    = "354--376",
         doi      = "10.1002/sam.11461")
