HTML {R2HTML}R Documentation

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 defalt is set to TRUE. A convenient default value for file argument is set to hidden variable .HTML.file, so that one may begin to set this variable and omit the argument thereafter.

Value

no value returned.

Note

For a discussion about .HTML.file default value for file argument, refer to HTMLStart

Author(s)

Eric Lecoutre

References

See Also

HTMLStart

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 size police",file=target)
tmp <- as.data.frame(matrix(rnorm(100),ncol=10))
HTML(tmp,file=target)
HTMLEndFile()



[Package Contents]