tests/testthat/line_breaks_and_other/if_with_line_break_indention-out.R

# adding line-break
if (x) {
  1 + 1 + +1
} else {
  3
}

# removing line-break
test_that("x", {
  my_test(call)
})

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.