To cite package ‘di’ in publications use:

Zhbannikov IY (2018). di: Deficit Index (DI). R package version 1.1.4, https://CRAN.R-project.org/package=di.

Corresponding BibTeX entry:

  @Manual{,
    title = {di: Deficit Index (DI)},
    author = {Ilya Y. Zhbannikov},
    year = {2018},
    note = {R package version 1.1.4},
    url = {https://CRAN.R-project.org/package=di},
  }