set_line_break_before_curly_opening {styler}R Documentation

Set line break before a curly brace

Description

Rule:

Usage

set_line_break_before_curly_opening(pd)

Examples

## Not run: 
tryCatch(
  {
    f(8)
  },
  error = function(e) NULL
)
# last-argument case
testthat("braces braces are cool", {
  code(to = execute)
})
call2(
  x = 2,
  {
    code(to = execute)
  },
  c = { # this is the named case
    g(x = 7)
  }
)
tryGugus(
  {
    g5(k = na)
  },
  a + b # line break also here because
  # preceded by brace expression
)

## End(Not run)

[Package styler version 1.4.1 Index]