Proxy for waldo comparisonSource:
Use this generic to override waldo's default comparison if you need to override the defaults (typically because your object stores data in an external pointer).
waldo comes with methods for a few common cases:
indexattributes are set to
NULL. Both attributes are used for performance optimisation, and don't affect the data.
xml2::xml_node: the underlying XML data is stored in memory in C, behind an external pointer, so the we best can do is to convert the object to a string.
Classes from the
RProtoBufpackage: like XML objects, these store data in memory in C++ and only expose string names to R. Fortunately, these have well-understood string representations that we can use for comparisons. See https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.text_format