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?
1 Answer
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.
3 Comments
Nick_Z0
@AltaStatistika please accept an answer if it answered your question. Thanks!
AltaStatistika
Immediately accepting an answer as the answer doesn't make sense. How should I having the question know it's the best one?
Nick_Z0
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. :)
