To cite package ‘energy’ in publications use:

Rizzo M, Szekely G (2024). energy: E-Statistics: Multivariate Inference via the Energy of Data. R package version 1.7-12, https://github.com/mariarizzo/energy.

Corresponding BibTeX entry:

  @Manual{,
    title = {energy: E-Statistics: Multivariate Inference via the
      Energy of Data},
    author = {Maria Rizzo and Gabor Szekely},
    year = {2024},
    note = {R package version 1.7-12},
    url = {https://github.com/mariarizzo/energy},
  }