AltaStatistika
AltaStatistika

Reputation: 121

Setting line length for reformatting code in RStudio?

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

Upvotes: 1

Views: 1262

Answers (1)

Nick_Z0
Nick_Z0

Reputation: 84

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.

Upvotes: 1

Related Questions