Description Usage Arguments Value
View source: R/compare_spy_reports.R
This function compares two different spy-reports (created by
spy
).
1 2 | compare_spy_reports(first_report, second_report,
ignore_these = character(0))
|
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
|
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.