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 Answer 1

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.

Sign up to request clarification or add additional context in comments.

3 Comments

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.