Learn R Programming

Kmisc (version 0.4.0-1)

html: Print HTML Elements

Description

Use this function to output HTML code for use in R Markdown documents or otherwise.

Usage

html(..., file = "")

Arguments

...
A set of HTML tag functions. See examples for details.
file
Location to output the generated HTML.

See Also

makeHTMLTag, for making your own tags.

Examples

Run this code
html(
  h1("Welcome!"),
  div(class="header", table( tr( td("nested elements are ok") ) ) ),
  footer(class="foot", "HTML5 footer")
  )

Run the code above in your browser using DataLab