HTML.title: Writes a title in a target HTML output

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

Description

A title is a string with the S3 class "title". The function as.title gives this class to an object, so that title method of HTML could apply to it.

Usage

1
2
3
4
## S3 method for class 'title'
HTML(x, HR = 2, CSSclass=NULL, file = get(".HTML.file"),
  append=TRUE, ...)
  as.title(x)

Arguments

x

string

HR

rank attribute of the HTML <H?> tag

CSSclass

CSS class to use for personalised reports

file

the target HTML file

append

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

...

...

Value

HTML.title

Called for its side effect of printing output (via cat)

as.title

Returns its input converted to character as class “title”

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
 7
 8
 9
10
11
## Write a title in the file /test.html.
## Target file may be changed when submitting this code...

myfile <- paste(tempfile(),".html",sep="")

tit1 <- as.title("This is method 1")

HTML(tit1, file=myfile)

HTML.title("This is method 2",file=myfile, HR=3)
cat("\n Test output written in: ",myfile)

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

Related to HTML.title in R2HTML...