To cite counterfactuals in publications use:

Dandl S, Hofheinz A, Binder M, Bischl B, Casalicchio G (2025). “counterfactuals: An R Package for Counterfactual Explanation Methods.” Journal of Statistical Software, 115(9), 1–48. doi:10.18637/jss.v115.i09.

Corresponding BibTeX entry:

  @Article{,
    title = {{counterfactuals}: An {R} Package for Counterfactual
      Explanation Methods},
    author = {Susanne Dandl and Andreas Hofheinz and Martin Binder and
      Bernd Bischl and Giuseppe Casalicchio},
    journal = {Journal of Statistical Software},
    year = {2025},
    volume = {115},
    number = {9},
    pages = {1--48},
    doi = {10.18637/jss.v115.i09},
  }