1

Is there a way to make RStudio use a length of 100 or 120 per row when reformatting code? So far I can only make it show me where lines end. Is there - using Ubuntu here - some config file?

enter image description here

1 Answers1

1

Yes, there is an Addin/package that does exactly that. It's called formatR. You can see it in action here on the right.

Edit: In addition you can take a look at this answer for a more in depth overview.

Nick_Z0
  • 86
  • 13
  • @AltaStatistika please accept an answer if it answered your question. Thanks! – Nick_Z0 Jul 12 '21 at 09:24
  • Immediately accepting an answer as the answer doesn't make sense. How should I having the question know it's the best one? – AltaStatistika Jul 12 '21 at 16:58
  • That is true. However, some beginners neglect to do it, and I needed the reputation to be able to comment. That's why I said it. :) – Nick_Z0 Jul 13 '21 at 14:36