styler (version 1.1.0)

set_line_break_if_call_is_multi_line: Set line break for multi-line function calls

Description

Set line break for multi-line function calls

Usage

set_line_break_after_opening_if_call_is_multi_line(pd,
  except_token_after = NULL, except_text_before = NULL)

set_line_break_before_closing_call(pd, except_token_before)

remove_line_break_in_empty_fun_call(pd)

Arguments

pd

A parse table.

except_token_after

A character vector with tokens after "'('" that do not cause a line break after "'('".

except_text_before

A character vector with text before "'('" that do not cause a line break after "'('".

except_token_before

A character vector with text before "')'" that do not cause a line break before "')'".

Functions

  • set_line_break_after_opening_if_call_is_multi_line: Sets line break after opening parenthesis.

  • set_line_break_before_closing_call: Sets line break before closing parenthesis.