I highly recommend using RStudio when implementing R. It really is really the only way to go.
For version control, use renv.
Also, I absolutely love RMarkdown, and RShiny!
Below is a pdf that Nathaniel D. Phillips wrote which is a fantastic resource (pdf is too large to embed; please refer to link):
https://www.pharmacoengineering.com/wp-content/uploads/2021/01/YaRrr.pdf