You may want to give this Academia question a read.
I'm unsure if RStudio will fall under the common software category within the context of your discipline. Might be worthwhile referencing though for reproducibility.
There's a difference between
R and RStudio (the IDE).
APA provides a guide for citing Data Sets, Software, and Tests
10.10 Computer Software, Mobile Apps, Apparatuses, and Equipment
ECU has APA 7 guide for software referencing.
A commonly used citation is (see for instance NIST's citation which is not APA):
RStudio Team. 2020. RStudio: Integrated Development Environment for R. Boston, MA: RStudio, PBC. http://www.rstudio.com/
However, given the 'takeover/overhaul', we'll be looking at:
RStudio Team. (2023). RStudio Desktop IDE (Version 2023.06.0-421) [Computer software]. PBC. https://posit.co/products/open-source/rstudio/
NB: I believe http://www.rstudio.com/ should be replaced with the proper Posit link.
For R, you can tag along the line:
R Core Team (2023). R (4.3.1) : A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. https://www.R-project.org
- NB: you may use the
citation() function in R
Please note suggested generic citation from Posit (PBC) without versioning!