HTMLbr: Facility functions to write HTML code

Description Usage Arguments Value Note Author(s) See Also Examples

Description

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

Usage

1
2
3
4
HTMLbr(x=1, file = get(".HTML.file"), append=TRUE)
HTMLli(txt="", file = get(".HTML.file"), append=TRUE)
HTMLhr(file = get(".HTML.file"), Width = "100%", Size = "1",
  CSSclass=NULL, append=TRUE)

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

Value

no value returned.

Note

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

Author(s)

Eric Lecoutre

See Also

HTML

Examples

1
2
3
4
5
6
## 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)

R2HTML documentation built on May 2, 2019, 5:11 p.m.

Related to HTMLbr in R2HTML...