codegrip
codegrip copied to clipboard
Automatic reshaping based on line lengths?
It's a fairly big need to have an R tool that automatically fixes excessive line lengths, especially if you have a large code base which is failing the bioconductor checks because you have line lengths > 80. Styler, which is probably the most common automated styling package, doesn't implement an automatic line-length fixer, probably because it hasn't implemented the exact algorithm you have here. Had you considered either:
- Implementing a simple algorithm that takes a line length and walks through the files in a project, and runs
reshape
on any line that exceeds this limit, or - Contributing an integration to
styler
so that it can use your reformatting as part of their automated styling?