To cite package ‘ggflags’ in publications use:

Auguie B (2017). ggflags: What the Package Does (Title Case). R package version 0.0.1, https://github.com/baptiste/ggflags.

Corresponding BibTeX entry:

  @Manual{,
    title = {ggflags: What the Package Does (Title Case)},
    author = {Baptiste Auguie},
    year = {2017},
    note = {R package version 0.0.1},
    url = {https://github.com/baptiste/ggflags},
  }