Setting line length for reformatting code in RStudio?

Viewed 208

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 Answers

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.

Related