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
Although it doesn't explicitly recommend that when the function definition looks like the following, there should be one argument per line to improve readability, but I am guessing that this is something implicitly being hinted at? Not sure.
Nevertheless, I was wondering if you think this (styling to one argument per line) is something that styler should be doing by default? Of course, it might not make sense to do this when there are only a few (3-4?) arguments present, but would have increasing utility the more arguments are present.
The text was updated successfully, but these errors were encountered:
Thanks. I don't think function declarations should be treated differently in this regard than other code.That is, it should be broken at 80 characters. We have #247, which I think should cover this case, however, as mentioned in #247 (comment), we'll probably start with function calls since they are the vast majority offending cases, and then maybe come back to the declaration case.
The
tidyverse
style guide mentions:Although it doesn't explicitly recommend that when the function definition looks like the following, there should be one argument per line to improve readability, but I am guessing that this is something implicitly being hinted at? Not sure.
Nevertheless, I was wondering if you think this (styling to one argument per line) is something that
styler
should be doing by default? Of course, it might not make sense to do this when there are only a few (3-4?) arguments present, but would have increasing utility the more arguments are present.The text was updated successfully, but these errors were encountered: