Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

update_indention_ref

Update the indention reference


Description

Update the indention reference

Usage

update_indention_ref_fun_dec(pd_nested)

Arguments

pd_nested

A nested parse table.

Functions

  • update_indention_ref_fun_dec: 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)

styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.