To cite package ‘xfun’ in publications use:

  Xie Y (2026). _xfun: Supporting Functions for Packages Maintained by
  'Yihui Xie'_. R package version 0.62.1,
  <https://github.com/yihui/xfun>.

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {xfun: Supporting Functions for Packages Maintained by 'Yihui Xie'},
    author = {Yihui Xie},
    year = {2026},
    note = {R package version 0.62.1},
    url = {https://github.com/yihui/xfun},
  }
