tests/testthat/scope-AsIs/scope_spaces_line_breaks-out.R

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

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


# do not replace assignment
a = 3
data_frame(a = 3)

# do not resolve semicolon
a <- function(x) x + 1;b;c

# don't add brackets in pipes
a %>%
  b %>%
  c
r-lib/styler documentation built on April 30, 2024, 9 p.m.