EVOLUTION-MANAGER
Edit File: compare_proxy.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Proxy for waldo comparison</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for compare_proxy {waldo}"><tr><td>compare_proxy {waldo}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Proxy for waldo comparison</h2> <h3>Description</h3> <p>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). </p> <p>waldo comes with methods for a few common cases: </p> <ul> <li><p> data.table: the <code>.internal.selfref</code> and <code>index</code> attributes are set to <code>NULL</code>. Both attributes are used for performance optimisation, and don't affect the data. </p> </li> <li> <p><code>xml2::xml_node</code>: 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. </p> </li> <li><p> Classes from the <code>RProtoBuf</code> package: 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 <a href="https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.text_format">https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.text_format</a> </p> </li></ul> <h3>Usage</h3> <pre> compare_proxy(x, path = "x") </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>An object.</p> </td></tr> <tr valign="top"><td><code>path</code></td> <td> <p>Path</p> </td></tr> </table> <h3>Value</h3> <p>A list with two components: </p> <ul> <li> <p><code>object</code>: the modified object </p> </li> <li> <p><code>path</code>: an updated path showing what modification was applied </p> </li></ul> <hr /><div style="text-align: center;">[Package <em>waldo</em> version 0.4.0 <a href="00Index.html">Index</a>]</div> </body></html>