Learn R Programming

R2HTML (version 2.3.4)

HTMLCSS: Insert HTML code to refer to an external CSS file

Description

Allow to use CSS file in a report

Usage

HTMLCSS(file = HTMLGetFile(), append = TRUE, CSSfile = "R2HTML.css")

Value

no value returned.

Arguments

file

the target HTML file

append

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

CSSfile

name of the CSS file to refer

Author

Eric Lecoutre

References

For information about CSS, have a look at W3 web site http://www.w3.org/Style/CSS/

Examples

Run this code
myfile <- file.path(tempdir(),"tmp.html")
HTMLCSS(myfile,CSSfile="myownCSS.CSS")

Run the code above in your browser using DataLab