tests/testthat/stylerignore/braces-out.R

x <- function()
3 # styler: off

x<- function() # styler: off
  3


if (x) # styler: off
  3 else
  4

if (x) {
  3
} else  # styler: off
  4

if (x)
  3 else 4 # styler: off

while (x) # styler: off
  "x"


while (x)
  "x"# styler: off

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.