Pausing tracking of a data frame may be required if an operation is about to be performed that creates a lot of groupings or that you otherwise don't want to pollute the history graph (e.g. maybe selecting something using an anti-join). Once paused the history is not updated until a resume() is called, or when the data frame is ungrouped (if auto is enabled).

pause(.data, auto = FALSE)

Arguments

.data

a tracked dataframe

auto

if TRUE the tracking will resume automatically when the number of groups has fallen to a sensible level (default is FALSE)?

Value

the .data dataframe with history graph tracking paused

Examples

iris %>% track() %>% pause() %>% history()
#> dtrackr history:
#> number of flowchart steps: 1 (approx)
#> tags defined: <none>
#> items excluded so far: <not capturing exclusions>
#> last entry / entries:
#> └ "150 items"
#> TRACKING IS PAUSED (manual)