To cite cgmanalysis in publications use:

Vigers, T., Chan, C. L., Snell-Bergeon, J., Bjornstad, P., Zeitler, P. S., Forlenza, G., & Pyle, L. (2019). cgmanalysis: An R package for descriptive analysis of continuous glucose monitor data. PLoS One, 14(10), e0216851.<doi:10.1371/journal.pone.0216851>

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