To cite package ‘transformer’ in publications use:

Quast B (2023). transformer: Implementation of Transformer Deep Neural Network with Vignettes. R package version 0.2.0, https://github.com/bquast/transformer.

Corresponding BibTeX entry:

  @Manual{,
    title = {transformer: Implementation of Transformer Deep Neural
      Network with Vignettes},
    author = {Bastiaan Quast},
    year = {2023},
    note = {R package version 0.2.0},
    url = {https://github.com/bquast/transformer},
  }