tests/testthat/indention_operators/while_for_without_curly_same_line_non_strict-in.R

while(x == 2) h(
  2
)

while(x == 2) h( # comment
  2
)

while(x == 2 &&
      2 + 2 == 2) h(
  2
)


for(x in 1:22) h(
  2
)

for(x in 1:22) h( # comment
  2
)

for(k in f(
  2:22
)) h(
        2
      )

for(k in f(
  2:22 # comment
)) h(2)
krlmlr/styler documentation built on April 8, 2024, 7:53 p.m.