citHeader("In published work that uses or mentions nimbleSMC, please cite the Journal of Statistical Software article. In work that uses nimbleSMC, please also cite the R package for the specific version used. To help us track usage to justify funding support for nimbleSMC, please include the DOI in the citation.")

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


bibentry(bibtype = "Article",
  title        = "Sequential {M}onte {C}arlo Methods in the {nimble} and {nimbleSMC} {R} Packages",
  author       = c(person(given = "Nicholas",
                          family = "Michaud",
                          email = "nicholas.michaud@gmail.com"),
                   person(given = "Perry",
                          family = "De Valpine",
                          email = "pdevalpine@berkeley.edu"),
                   person(given = "Daniel",
                          family = "Turek",
                          email = "dbt1@williams.edu"),
                   person(given = c("Christopher", "J."),
                          family = "Paciorek",
                          email = "paciorek@stat.berkeley.edu"),
                   person(given = "Dao",
                          family = "Nguyen",
                          email = "dxnguyen@olemiss.edu")),
  journal      = "Journal of Statistical Software",
  year         = "2021",
  volume       = "100",
  number       = "3",
  pages        = "1--39",
  doi          = "10.18637/jss.v100.i03",
  header       = "To cite nimbleSMC in publications use:"
)

bibentry(
 bibtype = "misc",
 title = "{nimbleSMC}: {S}equential {M}onte {C}arlo methods for {NIMBLE}",
 author = person(given = "{NIMBLE} Development Team"),
 url = "https://cran.r-project.org/package=nimbleSMC",
 year = year,
 version = meta$Version,
 note = note,
 doi = "10.5281/zenodo.1211190"
)
