I have tried using (setq r-indent-level 2) but that doesn't seem to work. I would like to set the indent to 2 spaces instead of 4 in R.

  • Try r-indent-offset instead. – Tobias Feb 23 '18 at 16:55

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.