tests/testthat/token_adding_removing/if_else_non_strict-out.R

{
  if (TRUE)
    3
  else
    5
}


{
  if (TRUE) {
    3
    a + b
  } else
    5

  c()
}


{
  if (TRUE)
    3
  else {
    h()
    5
  }
}


{
  if (TRUE) {
    3
  } else {
    s()
    5
  }
}

if (TRUE)
  1 else
  3

if (FALSE)
  1 + a * (31 / 2) else
  3^k


if (TRUE)
  1 + 1 else
  3

if (TRUE)
  1 + 1 else a + 4

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.