Builds options that will be passed to waldo::compare() down the line.
Usage
compare_options(
ignore_srcref = TRUE,
ignore_attr = FALSE,
ignore_function_env = FALSE,
ignore_formula_env = FALSE
)Arguments
- ignore_srcref
Ignore differences in function
srcrefs?TRUEby default since thesrcrefdoes not change the behaviour of a function, only its printed representation.- ignore_attr
Ignore differences in specified attributes? Supply a character vector to ignore differences in named attributes. By default the
"waldo_opts"attribute is listed inignore_attrso that changes to it are not reported; if you customizeignore_attr, you will probably want to do this yourself.For backward compatibility with
all.equal(), you can also useTRUE, to all ignore differences in all attributes. This is not generally recommended as it is a blunt tool that will ignore many important functional differences.- ignore_function_env, ignore_formula_env
Ignore the environments of functions and formulas, respectively? These are provided primarily for backward compatibility with
all.equal()which always ignores these environments.
