Compare Data
sbf_compare_data.Rd
Compares data using waldo::compare.
Usage
sbf_compare_data(
x,
x_name = substitute(x),
sub = sbf_get_sub(),
main = sbf_get_main(),
tolerance = sqrt(.Machine$double.eps),
ignore_attr = TRUE
)
Arguments
- x
The object to save.
- x_name
A string of the name.
- sub
A string specifying the path to the sub folder (by default the current sub folder).
- main
A string specifying the path to the main folder (by default the current main folder)
- tolerance
numeric \(\ge\) 0. Differences smaller than
tolerance
are not reported. The default value is close to1.5e-8
.- 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_attr
so 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.
See also
Other compare functions:
sbf_compare_data_archive()
,
sbf_diff_data()
,
sbf_diff_data_archive()
,
sbf_diff_table()
,
sbf_is_equal_data()
,
sbf_is_equal_data_archive()