expand_text: Expand Deparsed Code

Description Usage Arguments Details Value See Also

View source: R/simplify.R

Description

Aligns the "watch.code" data with the simplified "watch.data" by generating a copy of "watch.code" for each step of the evaluation, and indicating which line evaluation led to the corresponding state.

Usage

1

Arguments

code

the deparsed code code matching the watch data

data

list watch data simplified with simplify_data()

Details

Probably should be made part of simplify_data(). Not optimized.

Value

data frame with the deparsed code repeated for each step of the function evaluation, with the line that was just evaluated marked with a TRUE in the highlight column.

See Also

watch(), simplify_data()


brodieG/watcher documentation built on Nov. 24, 2019, 12:03 a.m.