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

context_towards_terminals

Update the a parse table given outer context


Description

outer_lag_newlines are added to the first token in pd, outer_indent is added to all tokens in pd, outer_spaces is added to the last token in pd. context_to_terminals() calls this function repeatedly, which means the propagation of the parse information to the terminal tokens.

Usage

context_towards_terminals(
  pd_nested,
  outer_lag_newlines,
  outer_indent,
  outer_spaces,
  outer_indention_refs
)

Arguments

pd_nested

A nested parse table.

outer_lag_newlines

The lag_newlines to be propagated inwards.

outer_indent

The indention depth to be propagated inwards.

outer_spaces

The number of spaces to be propagated inwards.

outer_indention_refs

The reference pos id that should be propagated inwards.

Value

An updated parse table.

See Also

context_to_terminals


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.