To cite package ‘afex’ in publications use:

Singmann H, Bolker B, Westfall J, Aust F, Ben-Shachar M (2025). afex: Analysis of Factorial Experiments. R package version 1.5-1, https://github.com/singmann/afex.

Corresponding BibTeX entry:

  @Manual{,
    title = {afex: Analysis of Factorial Experiments},
    author = {Henrik Singmann and Ben Bolker and Jake Westfall and
      Frederik Aust and Mattan S. Ben-Shachar},
    year = {2025},
    note = {R package version 1.5-1},
    url = {https://github.com/singmann/afex},
  }