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

apply_ref_indention_one

Applying reference indention of a target token


Description

Applies the indention level of target_token to all tokens that have target_token as a reference. This includes adding spaces to the first tokens on a line and updating the column col1 and col2 for all tokens on that line so they are kept updated.

Usage

apply_ref_indention_one(flattened_pd, target_token)

Arguments

flattened_pd

A flattened parse table

target_token

The index of the token from which the indention level should be applied to other tokens.


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.