EVOLUTION-MANAGER
Edit File: toHTML.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: Create an HTML representation of the given R object, using...</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 toHTML {XML}"><tr><td>toHTML {XML}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Create an HTML representation of the given R object, using internal C-level nodes</h2> <h3>Description</h3> <p>This generic function and the associated methods are intended to create an HTML tree that represents the R object in some intelligent manner. For example, we represent a vector as a table and we represent a matrix also as a table. </p> <h3>Usage</h3> <pre> toHTML(x, context = NULL) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p> the R object which is to be represented via an HTML tree </p> </td></tr> <tr valign="top"><td><code>context</code></td> <td> <p>an object which provides context in which the node will be used. This is currently arbitrary. It may be used, for example, when creating HTML for R documentation and providing information about variabes and functions that are available on that page and so have internal links. </p> </td></tr> </table> <h3>Details</h3> <p>It would be nicer if we could pass additional arguments to control whether the outer/parent layer is created, e.g. when reusing code for a vector for a row of a matrix. </p> <h3>Value</h3> <p>an object of class <code>XMLInternalNode</code> </p> <h3>Author(s)</h3> <p>Duncan Temple Lang</p> <h3>See Also</h3> <p>The <code>R2HTML</code> package. </p> <h3>Examples</h3> <pre> cat(as(toHTML(rnorm(10)), "character")) </pre> <hr /><div style="text-align: center;">[Package <em>XML</em> version 3.99-0.3 <a href="00Index.html">Index</a>]</div> </body></html>