Learn R Programming

textutils (version 0.1-6)

toHTML: Convert R Objects to HTML

Description

Convert an R object to an HTML snippet.

Usage

toHTML(x, ...)

Arguments

x

an object

arguments passed to methods

Value

A character vector.

Details

There exists toHTML methods in several packages, e.g. in tools or XML. Package R2HTML has a HTML generic.

The ‘semantics’ of this function are that they take an arbitrary R object and return an HTML snippet that can be placed in reports (i.e. in the same spirit as toLatex). By contrast, the purpose of toHTML in tools is to provide a whole HTML document.

See Also

toLatex