update_indention_ref: Update the indention reference

update_indention_refR Documentation

Update the indention reference

Description

Update the indention reference

Usage

update_indention_reference_function_declaration(pd_nested)

Arguments

pd_nested

A nested parse table.

Functions

  • update_indention_reference_function_declaration(): Updates the reference pos_id for all tokens in pd_nested if pd_nested contains a function declaration. Tokens inside a function declaration are are re-indented, that is, they are indented up to the level at which the token FUNCTION ends in terms of col2.

Examples

## Not run: 
a <- function(x,
              y) {
  x + y
}

## End(Not run)


r-lib/styler documentation built on Dec. 13, 2024, 5:42 p.m.