html.initfile: html.initfile

Description Usage Arguments Details Author(s) See Also Examples

View source: R/pub01_utilityFuncs.R

Description

Initiate a HTML file by writing the HTML <body><head><title></title></head>...</body> tags and their options.

Usage

1
2
3
html.initfile(file = get(".HTML.file"), Title = "R output",
  CSSFile = "R2HTML.css", HTMLframe = FALSE, BackGroundColor = "FFFFFF",
  BackGroundImg = "", useLaTeX = TRUE, useGrid = TRUE)

Arguments

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 HTMLInitFile function in the package R2HTML

Details

This function is a wraped function(but more convenient to use) of the HTMLInitFile function in the package R2HTML

Author(s)

Ruifei.Yin

See Also

HTMLInitFile

Examples

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")

QuantAndrew/QUtility documentation built on May 14, 2019, 7:36 a.m.