tests/testthat/line_breaks_and_other/curly-brace-edge-in.R

function(y = {}) NULL

function(y =
           {}) NULL

function(yyy= {1}) {
  1
}

function(yyy= {1
  }) {
  1
}

f1 <- function(x = {1}, y = 0) {
    c(x, y)
   }

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.