tests/testthat/line_breaks_and_other/comma-in.R

call(a,
     b
     , c)

call(a, b
     ,
     c)

call(a,)
call(a,
)

call(a
     ,)

mpg %>%
    summarise(avg_cty = mean(cty)
, avg_hwy = mean(hwy)
, n = n()
, n_class = n_distinct(class))

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.