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
Currently, we use a trick of appending a zero to complete a partial expression so that it is made stylizable by styler.
However, this trick no longer applies to the newly introduced pipe syntax in R 4.1 where it is syntactically incorrect to pipe to anything other than an explicit function call.
Previously if we hit "enter" in the end of the following line
1:10 %>%
then onTypeFormating will format the following code
Currently, we use a trick of appending a zero to complete a partial expression so that it is made stylizable by
styler
.However, this trick no longer applies to the newly introduced pipe syntax in R 4.1 where it is syntactically incorrect to pipe to anything other than an explicit function call.
Previously if we hit "enter" in the end of the following line
then onTypeFormating will format the following code
with proper indention, it becomes
But the same does not work with
as it is not accepted by the parser.
Now styler has supported pipe expressions via r-lib/styler#803.
The text was updated successfully, but these errors were encountered: