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)

Try the styler package in your browser

Any scripts or data that you put into this service are public.

styler documentation built on Aug. 29, 2023, 5:10 p.m.