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

citHeader("The following are references to the package. You should also reference the individual methods used, as detailed in the reference section of the help files for each function.")

bibentry(bibtype = "Article",
  title        = "Multivariate Locally Stationary Wavelet Analysis with the {mvLSW} {R} Package",
  author       = c(person(given = c("Simon", "A.", "C."),
                          family = "Taylor",
                          email = "s.taylor2@lancaster.ac.uk"),
                   person(given = "Timothy",
                          family = "Park",
                          email = "parkt@lancaster.ac.uk"),
                   person(given = c("Idris", "A."),
                          family = "Eckley",
                          email = "i.eckley@lancaster.ac.uk")),
  journal      = "Journal of Statistical Software",
  year         = "2019",
  volume       = "90",
  number       = "11",
  pages        = "1--19",
  doi          = "10.18637/jss.v090.i11",

  header       = "To cite mvLSW in publications use:"
)


bibentry(bibtype="Manual",
  title = "{mvLSW}: Multivariate, Locally Stationary Wavelet Process Estimation",
  author = c(
    person("Simon", "Taylor"),
    person("Tim","Park"),
    person("Idris","Eckley"),
    person("Rebecca","Killick")),
  year = year,
  url = "https://CRAN.R-project.org/package=mvLSW",
  note = note,
)

citFooter('To get Bibtex entries use: x <- citation("mvLSW"); toBibtex(x)')