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.

Corresponding BibTeX entry:

  @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},
  }