-
Notifications
You must be signed in to change notification settings - Fork 73
Function arguments within R6 classes misaligned #541
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
Comments
Thanks. I agree the other issues are (quite) different, so it's good to track this separately. I remember similar issues with function headers but can't find them now. |
One solution is to remove line breaks after # before
function(x =
3,
v) NULL
# after
function(x = 3, v) NULL This would simplify things quite a bit, although it's not the nicest solution. |
@michaelquinn32 I think I found a way to fix the bug. Do you want to test and see if it works in general? You can install this branch here: remotes::install_github("lorenzwalthert/styler@no-linebreak-with-eq-formals") |
That looks a lot better! Thank you! |
This has an effect that relates to another issue in function signatures. I opened #549 to address those. Thank you for the responsiveness and patience will all of these issues! |
Correctly formatted R6 classes have misaligned function arguments after applying styler.
This seems related to #254 and #258, but it seems useful to explicitly track this separately.
The text was updated successfully, but these errors were encountered: