tool to auto-format R code

Posted by Keith on Stack Overflow See other posts from Stack Overflow or by Keith
Published on 2010-06-10T19:45:03Z Indexed on 2010/06/10 20:12 UTC
Read the original article Hit count: 254

Filed under:
|
|

Is there any tool (editor, script, whatever...) available that can automatically reformat R code? It does not need to be customizable but it must be able to recognize statements separated by either semicolons or newlines since this code has both. If it can put all statements on a separate line, consistently indent code blocks and consistently place braces I will be very happy.

© Stack Overflow or respective owner

Related posts about r

    Related posts about formatting