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="Manual",
         title = "{flexrsurv}: An {R} package for relative survival analysis",
         author = c(person("Isabelle", "Clerc-Urmès", role="aut"), 
    person("Michel", "Grzebyk", role = c("aut", "cre"), email = "michel.grzebyk@inrs.fr"),
    person("Guy", "Hédelin", role="ctb"), 
    person("CENSUR working survival group", role = "ctb")),
         year         = year,
         url          = "https://CRAN.R-project.org/package=flexrsurv",
         note = note
)

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