To cite package ‘countcolors’ in publications use:

Weller H (2020). countcolors: Locates and Counts Pixels Within Color Range(s) in Images. R package version 0.9.2, https://github.com/hiweller/countcolors.

Corresponding BibTeX entry:

  @Manual{,
    title = {countcolors: Locates and Counts Pixels Within Color
      Range(s) in Images},
    author = {Hannah Weller},
    year = {2020},
    note = {R package version 0.9.2},
    url = {https://github.com/hiweller/countcolors},
  }