To cite package ‘goftest’ in publications use:

Faraway J, Marsaglia G, Marsaglia J, Baddeley A (2019). goftest: Classical Goodness-of-Fit Tests for Univariate Distributions. R package version 1.2-2, https://github.com/baddstats/goftest.

Corresponding BibTeX entry:

  @Manual{,
    title = {goftest: Classical Goodness-of-Fit Tests for Univariate
      Distributions},
    author = {Julian Faraway and George Marsaglia and John Marsaglia
      and Adrian Baddeley},
    year = {2019},
    note = {R package version 1.2-2},
    url = {https://github.com/baddstats/goftest},
  }