To cite package ‘rstudioapi’ in publications use:

Ushey K, Allaire J, Wickham H, Ritchie G (2026). rstudioapi: Safely Access the RStudio API. R package version 0.18.0.9000, https://github.com/rstudio/rstudioapi.

Corresponding BibTeX entry:

  @Manual{,
    title = {rstudioapi: Safely Access the RStudio API},
    author = {Kevin Ushey and JJ Allaire and Hadley Wickham and Gary
      Ritchie},
    year = {2026},
    note = {R package version 0.18.0.9000},
    url = {https://github.com/rstudio/rstudioapi},
  }