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

find_block_id

Find the block to which a token belongs


Description

Two assignment tokens EQ_ASSIGN belong to the same block if they are not separated by more than one token. Token between EQ_ASSIGN tokens belong to the EQ_ASSIGN token occurring before them, except the token right before EQ_ASSING already belongs to the EQ_ASSING after it. Note that this notion is unrelated to the column block in the parse table, which is used to parse_transform_serialize_r() code blocks and leave out the ones that are cached.

Usage

find_block_id(pd)

Arguments

pd

A parse table.


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.