To cite detrendr in publications use:

Rory Nolan et al., (2017). nandb: number and brightness in R with a novel automatic detrending algorithm. The Journal of Open Source Software, 2(14). <doi:10.1093/bioinformatics/btx434>.

Corresponding BibTeX entry:

  @Article{,
    title = {{nandb}--—number and brightness in R with a novel
      automatic detrending algorithm},
    author = {Rory Nolan and Luis Alvarez and Jonathan Elegheert and
      Maro Iliopoulou and G. Maria Jakobsdottir and Marina
      Rodriguez-Munoz and A. Radu Aricescu and Sergi Padilla-Parra},
    journal = {Bioinformatics},
    year = {2017},
    doi = {10.1093/bioinformatics/btx434},
  }