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
Just to consider into the discussion that styler does not break lines. Actually, there is a long discussion about this in their repo about how should be the best approach: r-lib/styler#247 (comment)
For long vectors of "simple values", expanding one value per line really is a bit too much. For instance, for this vector:
air
formats it like:while it would probably be better (in this particular case) to have:
I'm sure there are a ton of counter examples where having one element per line is actually better, but I just wanted to mention this case.
Note that this is particularly visible when formatting the output of
dput()
. This is whatdput(mtcars)
gives:This is how
styler
formats it (61 lines):And this is how
air
formats it (413 lines):The text was updated successfully, but these errors were encountered: