cache_find_block {styler}R Documentation

Find the groups of expressions that should be processed together

Description

Every expression is an expression itself, Expressions on same line are in same block. Multiple expressions can sit on one row, e.g. in line comment and commands separated with ";". This creates a problem when processing each expression separately because when putting them together, we need complicated handling of line breaks between them, as it is not apriori clear that there is a line break separating them. To avoid this, we put top level expressions that sit on the same line into one block, so the assumption that there is a line break between each block of expressions holds.

Usage

cache_find_block(pd)

Arguments

pd

A top level nest.

Details

we want to for turning points:


[Package styler version 1.7.0 Index]