To cite package ‘distances’ in publications use:

Savje F (2025). distances: Tools for Distance Metrics. R package version 0.1.13, https://github.com/fsavje/distances.

Corresponding BibTeX entry:

  @Manual{,
    title = {distances: Tools for Distance Metrics},
    author = {Fredrik Savje},
    year = {2025},
    note = {R package version 0.1.13},
    url = {https://github.com/fsavje/distances},
  }