Please cite the heatwaveR package in publications as:

Robert W. Schlegel and Albertus J. Smit (2018). heatwaveR: A central algorithm for the detection of heatwaves and cold-spells. Journal of Open Source Software, 3(27), 821, https://doi.org/10.21105/joss.00821

Corresponding BibTeX entry:

  @Article{,
    title = {{heatwaveR}: A central algorithm for the detection of
      heatwaves and cold-spells},
    author = {Robert W. Schlegel and Albertus J. Smit},
    journal = {Journal of Open Source Software},
    year = {2018},
    volume = {3},
    number = {27},
    pages = {821},
    doi = {10.21105/joss.00821},
  }