To cite cgmanalysis in publications use:

Vigers T, Chan CL, Snell-Bergeon J, Bjornstad P, Zeitler PS, Forlenza G, Pyle L (2019). “cgmanalysis: An R package for descriptive analysis of continuous glucose monitor data.” PLoS One, 14(10), e0216851. https://pubmed.ncbi.nlm.nih.gov/31603912/.

Corresponding BibTeX entry:

  @Article{,
    title = {{cgmanalysis}: An R package for descriptive analysis of
      continuous glucose monitor data},
    author = {Tim Vigers and Christine L. Chan and Janet Snell-Bergeon
      and Petter Bjornstad and Philip S. Zeitler and Gregory Forlenza
      and Laura Pyle},
    journal = {PLoS One},
    year = {2019},
    volume = {14},
    number = {10},
    pages = {e0216851},
    url = {https://pubmed.ncbi.nlm.nih.gov/31603912/},
  }