Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic reshaping based on line lengths? #6

Open
multimeric opened this issue Jan 9, 2023 · 1 comment
Open

Automatic reshaping based on line lengths? #6

multimeric opened this issue Jan 9, 2023 · 1 comment

Comments

@multimeric
Copy link

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?
@PeteHaitch
Copy link

Just an aside regarding "failing the bioconductor checks because you have line lengths > 80" - this isn't a strict requirement of Bioconductor but just a suggestion/recommendation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants