Learn R Programming

R2HTML (version 2.3.4)

HTMLbr: Facility functions to write HTML code

Description

Write <br>, <li> and <hr> tags, which are often used, to an output file.

Usage

HTMLbr(x=1, file = HTMLGetFile(), append=TRUE)
HTMLli(txt="", file = HTMLGetFile(), append=TRUE)
HTMLhr(file = HTMLGetFile(), Width = "100%", Size = "1",
CSSclass=NULL, append=TRUE)

Value

no value returned.

Arguments

x

number of <br> to put

txt

text to appear after the <li> tag

file

HTML target output file

Width

value of the width HR optional argument, in pixel or percent

Size

value of the size HR optional argument

append

logical. If 'TRUE' output will be appended to 'file'; otherwise, it will overwrite the contents of 'file'

CSSclass

CSS class to use for personalised reports

Author

Eric Lecoutre

See Also

HTML

Examples

Run this code

## Insert a line to a HTML file
## Change the path/name of the file to redirect to your test file

myfile <- paste(tempfile(),".html",sep="")
HTMLhr(file=myfile)
cat("\n Test output written in: ",myfile)

Run the code above in your browser using DataLab