compare_spy_reports: Compare two spy-reports.

Description Usage Arguments Value

View source: R/compare_spy_reports.R

Description

This function compares two different spy-reports (created by spy).

Usage

1
2
compare_spy_reports(first_report, second_report,
  ignore_these = character(0))

Arguments

first_report

The first of the spy-reports.

second_report

The second of the spy-reports.

ignore_these

Some arguments of the targeted function might be irrelevant for the final result, e.g. the number of cores used in a parallel computation. When the actual result of the computation are the focal point of interest for our comparison, such arguments should be included in the vector ignore_these.

Value

Either TRUE or FALSE will be returned, depending on whether or not the reports where equal or not. Note that equality in this context focus upon the results of the functions, and not upon whether or not it should also happen that all named arguments are identical. To be precise if we have a function f(arg) and in addition have name1 = name2 = 1, then the spy-reports from f(arg = name1) and f(arg = name2) will be considered to be equal.


LAJordanger/leanRcoding documentation built on Feb. 27, 2020, 4:42 p.m.