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
If I am not mistaken there is currently no option to force a line break after %>%. @krlmlr maybe we should force it for strict = TRUE? Or is that option already overloaded? We could add another option to give granular control.
Related #65.
They fit on a single line if they don't contain a line break. We currently don't care about line length, but when we have this, we should also break overly long pipes. Not sure if we should turn this on with strict = TRUE or define a new option.
Activity
lorenzwalthert commentedon Aug 8, 2017
Reference (#118).
krlmlr commentedon Sep 16, 2017
The style guide PR has been merged now.
lorenzwalthert commentedon Sep 16, 2017
So does that mean we do not add line breaks after pipes at all anymore?
krlmlr commentedon Sep 16, 2017
Not if they fit on a single line. Looking into it right now.
krlmlr commentedon Sep 16, 2017
Closed in 9e847af.
Merge tag 'v0.0-9'
harrismcgehee commentedon Feb 9, 2018
How is "if they fit on a single line" defined? Is there a way to turn off single line pipes?
lorenzwalthert commentedon Feb 9, 2018
If I am not mistaken there is currently no option to force a line break after
%>%. @krlmlr maybe we should force it forstrict = TRUE? Or is that option already overloaded? We could add another option to give granular control.Related #65.
krlmlr commentedon Feb 10, 2018
They fit on a single line if they don't contain a line break. We currently don't care about line length, but when we have this, we should also break overly long pipes. Not sure if we should turn this on with
strict = TRUEor define a new option.krlmlr commentedon Feb 10, 2018
For a one-time transformation, you could do
sed -r -i 's/([>]%[>])/\1\n /g' R/*and then apply styler (the-ioption must be-ibakon OS X).lorenzwalthert commentedon Feb 18, 2018
Let's revisit that once we have implemented #247.