tests/testthat/line_breaks_and_other/braces-fun-calls1-in.R

# the brace expression is the last argument (classical testthat case)
test_that(x, {
  hh
})

test_that(x,
  {
    hh
  }
)


# there are multiple brace expressions that spread over multiple lines
# (classical tryCatch)
tryCatch({
  exp(x)
}, error = function(x) x)

tryCatch(
  {
    exp(x)
  },
  error = function(x) x
)

call({
  blibla
}, {
  blublo
})

# curly-curly is respected
fio({{x}})

test_that("x", {{ k }})
krlmlr/styler documentation built on April 8, 2024, 7:53 p.m.