tests/testthat/indention_operators/while_for_if_without_curly_strict-out.R

while (x > 3) {
  return(FALSE)
}

for (i in 1:3) {
  print(i)
}

if (x) {
  call2(3)
}

for (i in 1:3) { #
  print(i)
}

for (i in
  1:3) { #
  print(i)
}

for (i in #
  1:3) { #
  print(i)
}

for ( #
  i in #
  1:3 #
) { #
  print(i)
}


while (x > 3) { #
  return(FALSE)
}

while (x > 3 #
) {
  return(FALSE)
}

while ( # test
  x > 3) { # another
  return(FALSE)
}

while (
  2 > # here
    3 #
) { #
  FALSE
}

while (
  2 > # here
    3 #
) {
  FALSE
}

while (
  2 > # here
    3
) { #
  FALSE
}

while ( #
  2 >
    3
) { #
  FALSE
}

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.