Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

HTML

Outputs an object to a HTML file


Description

Generic method equivalent to print that performs HTML output for any R object.

Usage

HTML(x, ...)

Arguments

x

R object to export

...

...

Details

HTML function acts like cat, with a file argument, which has to be used and a append argument, which is set by default to TRUE. A convenient default value for file argument can be set by calling HTMLInitFile or HTMLSetFile, so that one may begin to set this variable and omit the argument thereafter. Most of the current classes are handled by HTML function. Some specific methods such as HTML.matrix or HTML.data.frame do own a lot of arguments to specify the way the data are exported.

Value

no value returned.

Author(s)

Eric Lecoutre

See Also

Examples

dir.create(file.path(tempdir(),"R2HTML"))
target <- HTMLInitFile(file.path(tempdir(),"R2HTML"),filename="sample", BackGroundColor="#BBBBEE")
HTML("<br>Don't forget to use the CSS file in order to benefit from fixed-width font",file=target)
tmp <- as.data.frame(matrix(rnorm(100),ncol=10))
HTML(tmp,file=target)
HTMLEndFile()

R2HTML

HTML Exportation for R Objects

v2.3.2
GPL (>= 2)
Authors
Eric Lecoutre [aut], Milan Bouchet-Valat [cre, ctb], Thomas Friedrichsmeier [ctb]
Initial release
2016-06-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.