Description Usage Arguments Details Author(s) See Also Examples
View source: R/pub01_utilityFuncs.R
Initiate a HTML file by writing the HTML <body><head><title></title></head>...</body> tags and their options.
1 2 3 |
file |
A charactor string, giving the path and the file name of the HTML file |
Title |
The title of the HTML file,the string to pass to HTML <title> tag |
CSSFile |
Name of a CSS file to use,or absolute path and name when the the css file is not in the same directory with the target HTML file |
... |
More arguments to the |
This function is a wraped function(but more convenient to use) of the HTMLInitFile
function in the package R2HTML
Ruifei.Yin
1 2 3 4 5 6 | htmlrptDir <- file.path(getwd(),"htmlrpt")
htmlrtpFile <- "single_factor_model_report.html"
cssFile <- "factormodelrpt.css"
cssFile <- paste("file:///",file.path(htmlrptDir,cssFile),sep="") # if the css file is not in the same directory with the target HTML file, a absolute path is needed
.HTML.file <- file.path(htmlrptDir,htmlrtpFile)
html.initfile(CSSFile=cssFile,Title="Factor model report")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.