To cite package 'gap' in publications use:

Zhao JH (2022). gap: Genetic Analysis Package. R package version 1.2.3-6, https://CRAN.R-project.org/package=gap.

Zhao JH (2007). “gap: Genetic Analysis Package.” Journal of Statistical Software, 23(8), 1-18. doi:10.18637/jss.v023.i08, https://www.jstatsoft.org/v23/i08.

Corresponding BibTeX entries:

  @Manual{,
    title = {gap: Genetic Analysis Package},
    author = {J. H. Zhao},
    year = {2022},
    note = {R package version 1.2.3-6},
    url = {https://CRAN.R-project.org/package=gap},
  }
  @Article{,
    title = {gap: Genetic Analysis Package},
    author = {J. H. Zhao},
    journal = {Journal of Statistical Software},
    volume = {23},
    number = {8},
    pages = {1-18},
    year = {2007},
    doi = {10.18637/jss.v023.i08},
    url = {https://www.jstatsoft.org/v23/i08},
  }