To cite package 'Ckmeans.1d.dp' in publications use:

Wang H, Song M (2011). “Ckmeans.1d.dp: Optimal $k$-means clustering in one dimension by dynamic programming.” The R Journal, 3(2), 29–33. https://doi.org/10.32614/RJ-2011-015.

Corresponding BibTeX entry:

  @Article{Wang2011Ckmeans,
    title = {Ckmeans.1d.dp: Optimal $k$-means clustering in one
      dimension by dynamic programming},
    journal = {The R Journal},
    volume = {3},
    number = {2},
    pages = {29--33},
    year = {2011},
    author = {Haizhou Wang and Mingzhou Song},
    url = {https://doi.org/10.32614/RJ-2011-015},
  }