-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
A pre-commit hook for formatR
#97
Comments
formatr
formatR
I'm not familiar with |
Just for your interest, I built the R integration of pre-commit and I maintain a bunch of hooks, including a hook to format code with {styler}, at https://github.com/lorenzwalthert/precommit. You can add support for pre-commit to this {formatR} repo, as described in the link above. If you need help, let me know. |
@lorenzwalthert That looks nice - And I think for the repo I had in mind to use the pre-commit hook in I might actually end up recommending your |
I hope the above linked docs are self-explanatory, but I think you are the first one to attempt using it (apart from myself), so it's a good test to see if the docs are complete. |
It would be great to have
formatR
available as a pre-commit hook to keep R projects formatted consistently.Since version 2.11.0, pre-commit supports
R
.I would be glad to help implementing one if that is desired.
The text was updated successfully, but these errors were encountered: