@edensaesthetic @Sylvhem second this recommendation, though if you're on emacs, ESS is pretty good. RStudio has its issues.