tests/testthat/indention_operators/while_for_without_curly_same_line_non_strict-out.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)
r-lib/styler documentation built on April 10, 2024, 4 a.m.