To cite RStan in publications use:

Stan Development Team (2020). “RStan: the R interface to Stan.” R package version 2.19.3, http://mc-stan.org/.

Corresponding BibTeX entry:

  @Misc{,
    title = {{RStan}: the {R} interface to {Stan}},
    author = {{Stan Development Team}},
    note = {R package version 2.19.3},
    year = {2020},
    url = {http://mc-stan.org/},
  }