You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that this is not what we want, but the styler annotations are creating problematic formatting.
I have created issues to track this.
- r-lib/styler#1067
- r-lib/styler#1072
We can revisit this once they are resolved.
Tough one o tell you… these interactions between caching and stylerignore are hard to get right, but I think I found a solution after hours of digging. Will push later and hopefully be able to explain Tue problem and the solution.
Problem
The following code
is styled to-
Note how
skip()
andlocal
change their positions.How to reproduce
Run the example code in interactive mode.
If you are looking for a more realistic example, run
styler:::style_active_file()
on this file.Note
It's interesting that I can reproduce the issue in the minimal example posted above in the interactive mode, but not in a reprex.
The text was updated successfully, but these errors were encountered: