check_diff {chronicler}R Documentation

Check the output of the diff column

Description

Check the output of the diff column

Usage

check_diff(.c, columns = c("ops_number", "function"))

Arguments

.c

A chronicle object.

columns

Columns to select for the output. Defaults to c("ops_number", "function").

Details

'diff' is an option argument to the 'record()' function. When 'diff' = "full", a diff of the input and output of the decorated function gets saved, and if 'diff' = "summary" only a summary of the diff is saved.

Value

A data.frame with the selected columns and column "diff_obj".

Examples

r_subset <- record(subset, diff = "full")
result <- r_subset(mtcars, select = am)
check_diff(result) # <- this is the data frame listing the operations and the accompanying diffs
check_diff(result)$diff_obj # <- actually look at the diffs

[Package chronicler version 0.2.2 Index]