Auto-indentation does not work properly with curly brackets when they are preceded by a pipe operator in RStudio

Indent the following lines of code with the following key shortcuts
CTRL + A
CTRL + I

mtcars |> 
  identity()

{
  t <- 1
}

The results is not pretty :

mtcars |> 
  identity()

{
  t <- 1
  } # this curly bracket is not aligned

It does work when the function is in the same ligne as the pipe operator

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.