tests/testthat/spacing/round_curly-out.R

a <- function(x) {
}

if (a) {
  3
}

for (i in 10) {
  i
}

if (x) {
  y
} else if (x) {
  x
} else {
}

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.