EVOLUTION-MANAGER
Edit File: dot-data.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: '.data' and '.env' pronouns</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 dot-data {igraph}"><tr><td>dot-data {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2><code>.data</code> and <code>.env</code> pronouns</h2> <h3>Description</h3> <p>The <code>.data</code> and <code>.env</code> pronouns make it explicit where to look up attribute names when indexing <code>V(g)</code> or <code>E(g)</code>, i.e. the vertex or edge sequence of a graph. These pronouns are inspired by <code>.data</code> and <code>.env</code> in <code>rlang</code> - thanks to Michał Bojanowski for bringing these to our attention. </p> <p>The rules are simple: </p> <ul> <li> <p><code>.data</code> retrieves attributes from the graph whose vertex or edge sequence is being evaluated. </p> </li> <li> <p><code>.env</code> retrieves variables from the calling environment. </p> </li></ul> <p>Note that <code>.data</code> and <code>.env</code> are injected dynamically into the environment where the indexing expressions are evaluated; you cannot get access to these objects outside the context of an indexing expression. To avoid warnings printed by <code style="white-space: pre;">R CMD check</code> when code containing <code>.data</code> and <code>.env</code> is checked, you can import <code>.data</code> and <code>.env</code> from <code>igraph</code> if needed. Alternatively, you can declare them explicitly with <code>utils::globalVariables()</code> to silence the warnings. </p> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>