To cite package ‘zlib’ in publications use:

Geist S (2023). zlib: Compression and Decompression. R package version 1.0.3, https://CRAN.R-project.org/package=zlib.

Corresponding BibTeX entry:

  @Manual{,
    title = {zlib: Compression and Decompression},
    author = {Semjon Geist},
    year = {2023},
    note = {R package version 1.0.3},
    url = {https://CRAN.R-project.org/package=zlib},
  }