I know that many programming languages have tools to tidy up programming code? Is there a way to tidy up R code or some tools that will do this (e.g. included in R IDE's?)?
You can try formatR, which I found via this blog post.
In RStudio, there is an option for this in the menu: Code > Reformat code. Default hotkey in Windows is Ctrl+Shift+A
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With