tests/testthat/indention_operators/if-else-no-braces-not-strict-out.R

if (TRUE) c(
  2
) else c(
  1
)

if (TRUE) c(
  2
) else c( # nothing
  1
)

if (TRUE) c(
  2 # also nothing
) else c(
  1
)

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.