inject_data_into_stat_function: Inject an argument or override the return value of a method...

Description Usage Arguments

Description

Inject an argument or override the return value of a method within a Stat

Usage

1
2
inject_data_into_stat_function(OriginalStat, method, args = NULL,
  return_value = NULL)

Arguments

OriginalStat

the actual Stat

method

the method name to inject data into

args

named list of values to insert at the beginning of the method. Usually to override arguments. Default: NULL (i.e. no injection)

return_value

the value to return from the method (overriding the actual value). Default: NULL (i.e. no injection)


coolbutuseless/ggdebug documentation built on May 13, 2019, 11:25 a.m.