year <- sub("-.*", "", meta$Date)
if(!length(year))
  year <- substr(Sys.Date(),1,4)
vers <- meta$Version
if(is.null(vers))
  vers <- packageVersion("tsfgrnn")
vers <- paste("R package version", vers)

# Grab authors from DESCRIPTION file
# authors <- eval(parse(text=as.list(read.dcf("../DESCRIPTION")[1, ])$`Authors@R`))
# authors <- authors[sapply(authors$role, function(roles) "aut" %in% roles)]
# authors <- sapply(authors, function(author) paste(author$given, author$family))
# authors <- paste(authors, collapse = " and ")

citHeader("To cite the tsfgrnn package in publications, please use:")

bibentry(bibtype = "Article",
  title     = "{Strategies for time series forecasting with generalized regression neural networks}",
  author    = c(person("Francisco", "Martinez"),
                       person("Francisco", "Charte"),
                       person(c("Maria", "P."),"Frias"),
                       person(c("Ana","M."), "Martinez-Rodriguez")),
  journal   = "{Neurocomputing}",
  volume    =  491,
  pages     = "509--521",
  year      =  2022)
