We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to adjust a wide function declaration to use the new double-indented style:
# before xxxxxxxxxx_xxxxxxxxxxx <- function(yyyyyyyyyy.yyyy = c( "aaaaaaaaaa", "bbbbbbbbb", "cccc" )) { ... } # after xxxxxxxxxx_xxxxxxxxxxx <- function( yyyyyyyyyy.yyyy = c("aaaaaaaaaa", "bbbbbbbbb", "cccc")) { ... }
But under styler 1.9.0 this gets edited:
styler::style_text(' xxxxxxxxxx_xxxxxxxxxxx <- function( yyyyyyyyyy.yyyy = c("aaaaaaaaaa", "bbbbbbbbb", "cccc")) { ... } ') # xxxxxxxxxx_xxxxxxxxxxx <- function(yyyyyyyyyy.yyyy = c("aaaaaaaaaa", "bbbbbbbbb", "cccc")) { # ... # }
AFAICT the after style is style guide compliant (https://style.tidyverse.org/functions.html#long-lines-1); the key may be:
after
Prefer function-indent style to double-indent style when it fits.
Under the tidyverse guidance of 80 characters per line, the function doesn't"fit" in function-indent style, hence double-indenting is OK.
The text was updated successfully, but these errors were encountered:
Under the tidyverse guidance of 80 characters per line
For that we can't account, see #247. But we can not remove the line break in general if there is one.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I tried to adjust a wide function declaration to use the new double-indented style:
But under styler 1.9.0 this gets edited:
AFAICT the
after
style is style guide compliant (https://style.tidyverse.org/functions.html#long-lines-1); the key may be:Under the tidyverse guidance of 80 characters per line, the function doesn't"fit" in function-indent style, hence double-indenting is OK.
The text was updated successfully, but these errors were encountered: