To cite package ‘loc’ in publications use:

  Bacher E (2026). _loc: Count Lines of Code_. R package version 0.0.2,
  <https://github.com/etiennebacher/loc>.

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {loc: Count Lines of Code},
    author = {Etienne Bacher},
    year = {2026},
    note = {R package version 0.0.2},
    url = {https://github.com/etiennebacher/loc},
  }
