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
Hi!
I have this problem. Suppose you have this long line in your code:
value <- my_function(arg0 = 0, arg1 = 1, arg2 = 2, arg3 = 3, arg4 = 4, arg5 = 5, arg6 = 6, arg7 = 7)
Checking it with styler, returns the unmodified string.
styler
styler::style_text("value <- my_function(arg0 = 0, arg1 = 1, arg2 = 2, arg3 = 3, arg4 = 4, arg5 = 5, arg6 = 6, arg7 = 7)") value <- my_function(arg0 = 0, arg1 = 1, arg2 = 2, arg3 = 3, arg4 = 4, arg5 = 5, arg6 = 6, arg7 = 7)
However, lintr is complaining about the length of the line
lintr
[line_length_linter]: Lines should not be more than 80 characters. This line is 100 characters.
In my opinion, Rstudio gives a better format:
value <- my_function( arg0 = 0, arg1 = 1, arg2 = 2, arg3 = 3, arg4 = 4, arg5 = 5, arg6 = 6, arg7 = 7 )
What can I do to make styler behave like Rstudio in this case?
Best.
The text was updated successfully, but these errors were encountered:
Closing in favour of #247
If you want to avoid the lint, you can change the length limit in the lintr config:
library(lintr) lint( text = "value <- my_function(arg0 = 0, arg1 = 1, arg2 = 2, arg3 = 3, arg4 = 4, arg5 = 5, arg6 = 6, arg7 = 7)", linters = line_length_linter(120L) )
Created on 2024-04-20 with reprex v2.1.0
Sorry, something went wrong.
Thanks for the tip.
No branches or pull requests
Hi!
I have this problem. Suppose you have this long line in your code:
Checking it with
styler
, returns the unmodified string.However,
lintr
is complaining about the length of the lineIn my opinion, Rstudio gives a better format:
What can I do to make
styler
behave like Rstudio in this case?Best.
The text was updated successfully, but these errors were encountered: