-
Notifications
You must be signed in to change notification settings - Fork 129
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
Consider styler to replace formatR #201
Comments
See yihui/formatR#76. If |
Given yihui/formatR#76, I am not likely to actually make this change until much later in the future. |
Hi. I just saw this and I wanted to point out to one problem with formatR that styler can dhandle better: tidyeval Syntax. Because formatR converts !!! x to !(!(!x)) or similar, so in the case you actually want to execute code, that may be detrimental. If you just use it for caching, I guess it's ok. |
Thanks, !! was actually the reason I started looking into styler. But I did manage to work around that shortcoming in #200: the styled/standardized version of the command is no longer the version that also needs to run. That takes the pressure off of formatR/styler. I am still sometimes having problems with '!(!...))', but not in a way that either tool was designed to help. |
Ok fine 😊. So probably it's a good decision to stick with formaR, at least as long as styler is a young and maturing project (e.g. there are more than 20 issues labeled with "Status: Postponed" that should be resolved at some point). |
I will definitely revisit the question. I believe |
Replacing with #562 instead. I would prefer base R if possible because this is such a sensitive piec of the internals. |
For projects running
drake
> 5.0.0, it may be time to switch fromformatR::tidy_source()
tostyler::style_text()
:To do:
The text was updated successfully, but these errors were encountered: