citHeader("To cite collapse in publications, please use:")

bibentry(bibtype = "misc",
         key = "krantz2024collapse",
         title = "collapse: Advanced and Fast Statistical Computing and Data Transformation in R",
         author = person("Sebastian", "Krantz"),
         year = "2024",
         eprint="2403.05038",
         archivePrefix="arXiv",
         primaryClass="stat.CO",
         url = "https://arxiv.org/abs/2403.05038",
         textVersion = "Krantz, S. (2024). collapse: Advanced and Fast Statistical Computing and Data Transformation in R [Preprint]. arXiv. https://arxiv.org/abs/2403.05038")

year <- sub("-.*", "", meta$Date)
note <- sprintf("R package version %s", meta$Version)
bibentry(bibtype = "Manual",
         key = "rcollapse",
         title = "collapse: Advanced and Fast Data Transformation in R",
         author = person("Sebastian", "Krantz"),
         year = year,
         note = note,
         doi = "10.5281/zenodo.8433090",
         url = "https://sebkrantz.github.io/collapse/",
         textVersion = paste0("Krantz (", year, "). collapse: Advanced and Fast Data Transformation in R. ", note,
                              ". doi:10.5281/zenodo.8433090. https://sebkrantz.github.io/collapse/."))
